class Table

Methods

__construct(string $name, array $columns, string|null $schema = null, array $indexes = [], array $foreignKeys = [], array $checks = [], string|null $comment = null, string|null $collation = null, string|null $engine = null, array $parents = [], TableReference|null $partitionOf = null, string|null $partitionBounds = null, array $issues = [])

Create a table definition and index its columns and primary key.

Column|null
column(string $name)

Find a column by its exact name.

Index|null
primaryKey()

Get the primary key definition.

bool
isComplete()

Determine whether the represented table facts have been fully read.

Details

at line 24
__construct(string $name, array $columns, string|null $schema = null, array $indexes = [], array $foreignKeys = [], array $checks = [], string|null $comment = null, string|null $collation = null, string|null $engine = null, array $parents = [], TableReference|null $partitionOf = null, string|null $partitionBounds = null, array $issues = [])

Create a table definition and index its columns and primary key.

Parameters

string $name
array $columns

columns in declaration order

string|null $schema
array $indexes
array $foreignKeys
array $checks
string|null $comment
string|null $collation
string|null $engine
array $parents
TableReference|null $partitionOf
string|null $partitionBounds
array $issues

at line 46
Column|null column(string $name)

Find a column by its exact name.

Parameters

string $name

Return Value

Column|null

at line 54
Index|null primaryKey()

Get the primary key definition.

Return Value

Index|null

at line 62
bool isComplete()

Determine whether the represented table facts have been fully read.

Return Value

bool