ColumnDefinition
класс ColumnDefinition расширяет Fluent (View source)
Свойства
| protected | $attributes | из Fluent |
Методы
| void | __construct(TValue> $attributes = [])
Создать новый плавный экземпляр. | из Fluent |
| get($key, $default = null) No description | из Fluent | |
| getAttributes() No description | из Fluent | |
| toArray() No description | из Fluent | |
| array | jsonSerialize() No description | из Fluent |
| string | toJson(int $options = 0)
Преобразовать плавный экземпляр в JSON. | из Fluent |
| bool | offsetExists(TKey $offset)
Определить, существует ли данный смещение. | из Fluent |
| mixed | offsetGet(TKey $offset)
Получить значение для данного смещения. | из Fluent |
| void | offsetSet(TKey $offset, TValue $value)
Установить значение по данному смещению. | из Fluent |
| void | offsetUnset(TKey $offset)
Сбросить значение по данному смещению. | из Fluent |
| $this | __call(TKey $method, $parameters)
Обрабатывать динамические вызовы плавного экземпляра для установки атрибутов. | из Fluent |
| TValue|null | __get(TKey $key)
Динамически получить значение атрибута. | из Fluent |
| void | __set(TKey $key, TValue $value)
Динамически установить значение атрибута. | из Fluent |
| bool | __isset(TKey $key)
Динамически проверить, установлен ли атрибут. | из Fluent |
| void | __unset(TKey $key)
Динамически сбросить атрибут. | из Fluent |
| $this | after(string $column) Place the column "after" another column (MySQL) No description | |
| $this | always(bool $value = true) Used as a modifier for generatedAs() (PostgreSQL) No description | |
| $this | autoIncrement() $et INTEGER columns as auto-increment (primary key) No description | |
| $this | change()
Изменить столбец | |
| $this | charset(string $charset) Specify a character set for the column (MySQL) No description | |
| $this | collation(string $collation) Specify a collation for the column (MySQL/PostgreSQL/SQL Server) No description | |
| $this | comment(string $comment) Add a comment to the column (MySQL/PostgreSQL) No description | |
| $this | default(mixed $value)
Указать значение по умолчанию для столбца | |
| $this | first() $lace the column "first" in the table (MySQL) No description | |
| $this | from(int $startingValue) Set the starting value of an auto-incrementing field (MySQL / PostgreSQL) No description | |
| $this | generatedAs(Expression $expression = null) Create a SQL compliant identity column (PostgreSQL) No description | |
| $this | index(string $indexName = null)
Добавить индекс | |
| $this | invisible() $pecify that the column should be invisible to "SELECT *" (MySQL) No description | |
| $this | nullable(bool $value = true)
Разрешить вставку значений NULL в столбец | |
| $this | persisted() $ark the computed generated column as persistent (SQL Server) No description | |
| $this | primary()
Добавить первичный индекс | |
| $this | fulltext(string $indexName = null)
Добавить индекс полного текста | |
| $this | spatialIndex(string $indexName = null)
Добавить пространственный индекс | |
| $this | startingValue(int $startingValue) Set the starting value of an auto-incrementing field (MySQL/PostgreSQL) No description | |
| $this | storedAs(string $expression) Create a stored generated column (MySQL/PostgreSQL/SQLite) No description | |
| $this | type(string $type)
Указать тип для столбца | |
| $this | unique(string $indexName = null)
Добавить уникальный индекс | |
| $this | unsigned() $et the INTEGER column as UNSIGNED (MySQL) No description | |
| $this | useCurrent()
Установить столбец TIMESTAMP для использования CURRENT_TIMESTAMP в качестве значения по умолчанию | |
| $this | useCurrentOnUpdate() $et the TIMESTAMP column to use CURRENT_TIMESTAMP when updating (MySQL) No description | |
| $this | virtualAs(string $expression) Create a virtual generated column (MySQL/PostgreSQL/SQLite) No description |
Details
void __construct(TValue> $attributes = [])
Создать новый плавный экземпляр.
get($key, $default = null)
Описание отсутствует
getAttributes()
Описание отсутствует
toArray()
Описание отсутствует
array jsonSerialize()
Описание отсутствует
string toJson(int $options = 0)
Преобразовать текущий экземпляр в JSON.
bool offsetExists(TKey $offset)
Определить, существует ли заданный смещение.
mixed offsetGet(TKey $offset)
Получить значение для данного смещения.
void offsetSet(TKey $offset, TValue $value)
Установить значение по заданному смещению.
void offsetUnset(TKey $offset)
Удалить значение по заданному смещению.
$this __call(TKey $method, $parameters)
Обработать динамические вызовы к текущему экземпляру для установки атрибутов.
TValue|null __get(TKey $key)
Динамически получить значение атрибута.
void __set(TKey $key, TValue $value)
Динамически установить значение атрибута.
bool __isset(TKey $key)
Динамически проверить, установлен ли атрибут.
void __unset(TKey $key)
Динамически удалить атрибут.
$this after(string $column) Разместить столбец "после" другого столбца (MySQL)
Описание отсутствует
$this always(bool $value = true) Используется как модификатор для generatedAs() (PostgreSQL)
Описание отсутствует
$this autoIncrement() $et INTEGER columns as auto-increment (primary key)
Описание отсутствует
$this change()
Изменить столбец
$this charset(string $charset) Указывает кодовую страницу для столбца (MySQL)
Описание отсутствует
$this collation(string $collation) Указывает кодировку для столбца (MySQL/PostgreSQL/SQL Server)
Описание отсутствует
$this comment(string $comment) Добавить комментарий к столбцу (MySQL/PostgreSQL)
Описание отсутствует
$this default(mixed $value)
Указывает значение "по умолчанию" для столбца
$this first() $lace the column "first" in the table (MySQL)
Описание отсутствует
$this from(int $startingValue) Установить начальное значение автоинкрементируемого поля (MySQL / PostgreSQL)
Описание отсутствует
$this generatedAs(Expression $expression = null) Создать колонку сгенерированную по SQL (PostgreSQL)
Без описания
$this index(string $indexName = null)
Добавить индекс
$this invisible() Указать, что колонка должна быть невидимой для "SELECT *" (MySQL)
Без описания
$this nullable(bool $value = true)
Разрешить вставку NULL значений в колонку
$this persisted() Отметить вычисляемую сгенерированную колонку как постоянную (SQL Server)
Без описания
$this primary()
Добавить первичный индекс
$this fulltext(string $indexName = null)
Добавить полнотекстовый индекс
$this spatialIndex(string $indexName = null)
Добавить пространственный индекс
$this startingValue(int $startingValue) Установить начальное значение автоматически увеличивающегося поля (MySQL/PostgreSQL)
Без описания
$this storedAs(string $expression) Создать сохраненную сгенерированную колонку (MySQL/PostgreSQL/SQLite)
Без описания
$this type(string $type)
Указать тип для колонки
$this unique(string $indexName = null)
Добавить уникальный индекс
$this unsigned() Установить колонку INTEGER как UNSIGNED (MySQL)
Без описания
$this useCurrent()
Установить колонку TIMESTAMP для использования значения по умолчанию CURRENT_TIMESTAMP
$this useCurrentOnUpdate() Установить колонку TIMESTAMP для использования CURRENT_TIMESTAMP при обновлении (MySQL)
Без описания
$this virtualAs(string $expression) Создать виртуальную сгенерированную колонку (MySQL/PostgreSQL/SQLite)
Без описания
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Database/Schema/ColumnDefinition.html