Expand description
Table: a fluent table blueprint, compiled by its schema into
CREATE TABLE, ALTER TABLE and the other table statements; and
ForeignKey, a foreign key declared on it.
Factories and alterations every dialect has are inherent methods; the
others are gated by marker traits the dialects implement (Serial,
Checks, InlineForeignKey, …), as PHP’s dialect table classes
each use only the traits they support.
Structs§
- Foreign
Key - A foreign key:
FOREIGN KEY (column) REFERENCES table (column)with optionalON DELETE/ON UPDATEactions. - Table
- A table blueprint for the dialect
S: columns, indexes, keys and alterations, compiled by the schema it came from. - Table
Definition - Everything a table blueprint holds: added columns, indexes, keys, and the alterations, partitioning and engine options set on it.
Traits§
- Checks
- Dialects with named table-level
CHECKconstraints (and column-level ones). - Column
Alterations - Dialects that drop and rename columns in
ALTER TABLE. - Composite
Primary - Dialects with composite primary keys.
- Foreign
Keys - Dialects that also add and drop foreign keys in
ALTER TABLE. - Fulltext
Spatial Index - Dialects with full-text and spatial indexes.
- Inline
Foreign Key - Dialects with inline foreign keys in
CREATE TABLE. - Serial
- Dialects with
SERIALcolumn factories. - Standard
Partitioning - Dialects with
PARTITION BY RANGE / LIST / HASH.