IndexDefinition
final class IndexDefinition (View source)
Methods
__construct(IndexType $type, array $columns, string|null $name = null, bool $ifNotExists = false)
primary(string|array $columns, string|null $name = null, bool $ifNotExists = false)
index(string|array $columns, string|null $name = null, bool $ifNotExists = false)
unique(string|array $columns, string|null $name = null, bool $ifNotExists = false)
fulltext(string|array $columns, string|null $name = null, bool $ifNotExists = false)
spatial(string|array $columns, string|null $name = null, bool $ifNotExists = false)
type()
IndexType
columns()
array
name()
string|null
bool
withIfNotExists(bool $ifNotExists = true)
string
Details
__construct
__construct(IndexType $type, array $columns, string|null $name = null, bool $ifNotExists = false)
No description
primary
static IndexDefinition
primary(string|array $columns, string|null $name = null, bool $ifNotExists = false)
No description
index
static IndexDefinition
index(string|array $columns, string|null $name = null, bool $ifNotExists = false)
No description
unique
static IndexDefinition
unique(string|array $columns, string|null $name = null, bool $ifNotExists = false)
No description
fulltext
static IndexDefinition
fulltext(string|array $columns, string|null $name = null, bool $ifNotExists = false)
No description
spatial
static IndexDefinition
spatial(string|array $columns, string|null $name = null, bool $ifNotExists = false)
No description
type
IndexType
type()
No description
columns
array
columns()
No description
name
string|null
name()
No description
ifNotExists
bool
ifNotExists()
No description
resolvedName
string
resolvedName()
No description