ColumnDefinition
final class ColumnDefinition (View source)
Provides the column definition contract for the database subsystem.
Methods
Initializes this ColumnDefinition with the collaborators and state required by its database contract.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Retrieves the requested value without changing the current database state.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Reports whether the requested condition holds for the current database state.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Reports whether the requested condition holds for the current database state.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Reports whether the requested condition holds for the current database state.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Retrieves the requested value without changing the current database state.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Reports whether the requested condition holds for the current database state.
Details
__construct
__construct(string $name, ColumnType|string $type, int|string|null $length = null, bool $unsigned = false, bool $nullable = false, bool $hasDefault = false, mixed $default = null, bool $autoIncrement = false, string|null $comment = null, string|null $after = null, bool $first = false, string|null $renameTo = null, string|null $literal = null)
Initializes this ColumnDefinition with the collaborators and state required by its database contract.
raw
static ColumnDefinition
raw(string $definition)
Provides this part of the database contract while preserving the object's current state and driver semantics.
id
static ColumnDefinition
id(string $name = 'id')
Provides this part of the database contract while preserving the object's current state and driver semantics.
string
static ColumnDefinition
string(string $name, int $length = 255)
Provides this part of the database contract while preserving the object's current state and driver semantics.
integer
static ColumnDefinition
integer(string $name)
Provides this part of the database contract while preserving the object's current state and driver semantics.
datetime
static ColumnDefinition
datetime(string $name)
Provides this part of the database contract while preserving the object's current state and driver semantics.
text
static ColumnDefinition
text(string $name)
Provides this part of the database contract while preserving the object's current state and driver semantics.
nullable
ColumnDefinition
nullable(bool $nullable = true)
Provides this part of the database contract while preserving the object's current state and driver semantics.
unsigned
ColumnDefinition
unsigned(bool $unsigned = true)
Provides this part of the database contract while preserving the object's current state and driver semantics.
default
ColumnDefinition
default(mixed $value)
Provides this part of the database contract while preserving the object's current state and driver semantics.
defaultExpression
ColumnDefinition
defaultExpression(string $expression)
Provides this part of the database contract while preserving the object's current state and driver semantics.
autoIncrement
ColumnDefinition
autoIncrement(bool $autoIncrement = true)
Provides this part of the database contract while preserving the object's current state and driver semantics.
comment
ColumnDefinition
comment(string|null $comment)
Provides this part of the database contract while preserving the object's current state and driver semantics.
after
ColumnDefinition
after(string|null $column)
Provides this part of the database contract while preserving the object's current state and driver semantics.
first
ColumnDefinition
first(bool $first = true)
Retrieves the requested value without changing the current database state.
renameTo
ColumnDefinition
renameTo(string|null $name)
Provides this part of the database contract while preserving the object's current state and driver semantics.
name
string
name()
Provides this part of the database contract while preserving the object's current state and driver semantics.
type
ColumnType|string
type()
Provides this part of the database contract while preserving the object's current state and driver semantics.
typeValue
string
typeValue()
Provides this part of the database contract while preserving the object's current state and driver semantics.
length
int|string|null
length()
Provides this part of the database contract while preserving the object's current state and driver semantics.
isUnsigned
bool
isUnsigned()
Reports whether the requested condition holds for the current database state.
nullableFlag
bool
nullableFlag()
Provides this part of the database contract while preserving the object's current state and driver semantics.
hasDefault
bool
hasDefault()
Reports whether the requested condition holds for the current database state.
defaultValue
mixed
defaultValue()
Provides this part of the database contract while preserving the object's current state and driver semantics.
isAutoIncrement
bool
isAutoIncrement()
Reports whether the requested condition holds for the current database state.
commentText
string|null
commentText()
Provides this part of the database contract while preserving the object's current state and driver semantics.
afterColumn
string|null
afterColumn()
Provides this part of the database contract while preserving the object's current state and driver semantics.
firstPosition
bool
firstPosition()
Retrieves the requested value without changing the current database state.
renameTarget
string|null
renameTarget()
Provides this part of the database contract while preserving the object's current state and driver semantics.
literal
string|null
literal()
Provides this part of the database contract while preserving the object's current state and driver semantics.
isLiteral
bool
isLiteral()
Reports whether the requested condition holds for the current database state.