Skip to main content

Module feature

Module feature 

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

ViewBody
The body of a materialized view: a builder (its SQL inlined, its bindings carried) or raw SQL, emitted verbatim (trusted input only).

Traits§

AnalyzeTable
Refreshing table statistics.
ColumnComments
Column comments as separate statements.
CreatePartition
Adding partitions.
Databases
Databases (schemas on PostgreSQL).
DropPartition
Dropping partitions.
ForeignKeys
Adding and dropping foreign-key constraints on existing tables.
MaterializedViews
Materialized views.
Partitioning
PARTITION BY in CREATE TABLE.
Procedures
Stored procedures.
RenameIndex
Renaming indexes.
ReplaceView
CREATE OR REPLACE VIEW.
Sequences
Sequences.
TableComments
Table comments.
Triggers
Row triggers.
Types
User-defined enum types.
Views
Views.