Skip to main content

Module table

Module table 

Source
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§

ForeignKey
A foreign key: FOREIGN KEY (column) REFERENCES table (column) with optional ON DELETE / ON UPDATE actions.
Table
A table blueprint for the dialect S: columns, indexes, keys and alterations, compiled by the schema it came from.
TableDefinition
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 CHECK constraints (and column-level ones).
ColumnAlterations
Dialects that drop and rename columns in ALTER TABLE.
CompositePrimary
Dialects with composite primary keys.
ForeignKeys
Dialects that also add and drop foreign keys in ALTER TABLE.
FulltextSpatialIndex
Dialects with full-text and spatial indexes.
InlineForeignKey
Dialects with inline foreign keys in CREATE TABLE.
Serial
Dialects with SERIAL column factories.
StandardPartitioning
Dialects with PARTITION BY RANGE / LIST / HASH.