ColumnBlueprint
final class ColumnBlueprint (View source)
Collects modifiers for one column while its owning table blueprint is being defined.
Methods
Initializes this ColumnBlueprint 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.
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.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Details
__construct
__construct(string $name, ColumnType|string $type, int|string|null $length = null, TableBlueprint|null $table = null)
Initializes this ColumnBlueprint with the collaborators and state required by its database contract.
raw
static ColumnBlueprint
raw(string $definition)
Provides this part of the database contract while preserving the object's current state and driver semantics.
unsigned
ColumnBlueprint
unsigned(bool $unsigned = true)
Provides this part of the database contract while preserving the object's current state and driver semantics.
nullable
ColumnBlueprint
nullable(bool $nullable = true)
Provides this part of the database contract while preserving the object's current state and driver semantics.
default
ColumnBlueprint
default(mixed $value)
Provides this part of the database contract while preserving the object's current state and driver semantics.
defaultExpression
ColumnBlueprint
defaultExpression(string $expression)
Provides this part of the database contract while preserving the object's current state and driver semantics.
autoIncrement
ColumnBlueprint
autoIncrement(bool $autoIncrement = true)
Provides this part of the database contract while preserving the object's current state and driver semantics.
comment
ColumnBlueprint
comment(string $comment)
Provides this part of the database contract while preserving the object's current state and driver semantics.
after
ColumnBlueprint
after(string $column)
Provides this part of the database contract while preserving the object's current state and driver semantics.
first
ColumnBlueprint
first()
Retrieves the requested value without changing the current database state.
renameTo
ColumnBlueprint
renameTo(string $name)
Provides this part of the database contract while preserving the object's current state and driver semantics.
primary
ColumnBlueprint
primary(string|null $name = null)
Provides this part of the database contract while preserving the object's current state and driver semantics.
index
ColumnBlueprint
index(string|null $name = null)
Provides this part of the database contract while preserving the object's current state and driver semantics.
unique
ColumnBlueprint
unique(string|null $name = null)
Provides this part of the database contract while preserving the object's current state and driver semantics.
fulltext
ColumnBlueprint
fulltext(string|null $name = null)
Provides this part of the database contract while preserving the object's current state and driver semantics.
definition
ColumnDefinition
definition()
Provides this part of the database contract while preserving the object's current state and driver semantics.