Expand description
What a schema can do beyond tables and indexes: each trait is one capability a dialect may implement (foreign keys, procedures, triggers, views, partitions, …), so callers can require it in a bound.
PHP: the Utopia\Query\Schema\Feature\* interfaces.
Enums§
- View
Body - The body of a materialized view: a builder (its SQL inlined, its bindings carried) or raw SQL, emitted verbatim (trusted input only).
Traits§
- Analyze
Table - Refreshing table statistics.
- Column
Comments - Column comments as separate statements.
- Create
Partition - Adding partitions.
- Databases
- Databases (schemas on PostgreSQL).
- Drop
Partition - Dropping partitions.
- Foreign
Keys - Adding and dropping foreign-key constraints on existing tables.
- Materialized
Views - Materialized views.
- Partitioning
PARTITION BYinCREATE TABLE.- Procedures
- Stored procedures.
- Rename
Index - Renaming indexes.
- Replace
View CREATE OR REPLACE VIEW.- Sequences
- Sequences.
- Table
Comments - Table comments.
- Triggers
- Row triggers.
- Types
- User-defined enum types.
- Views
- Views.