class Table (View source)

Table utilities.

Methods

static array<int,array<string,array|string|null>>
getForeignKeys(CreateStatement $statement)

Gets the foreign keys of the table.

static array<int|string,array<string,bool|string|mixed>>
getFields(CreateStatement $statement)

Gets fields of the table.

Details

static array<int,array<string,array|string|null>> getForeignKeys(CreateStatement $statement)

Gets the foreign keys of the table.

Parameters

CreateStatement $statement

the statement to be processed

Return Value

array<int,array<string,array|string|null>>

static array<int|string,array<string,bool|string|mixed>> getFields(CreateStatement $statement)

Gets fields of the table.

Parameters

CreateStatement $statement

the statement to be processed

Return Value

array<int|string,array<string,bool|string|mixed>>