PostgresSchemaGrammar class final

PostgreSQL DDL grammar.

Inheritance

Constructors

PostgresSchemaGrammar()
const

Properties

autoIncrementClause → String
Clause appended to an auto-increment column (after the type).
no setteroverride
createSuffix → String
no setterinherited
dialect → SqlDialect
no setteroverride
enumAsCheck → bool
Whether enum columns need a CHECK constraint.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
inlineUnique → bool
Whether inline UNIQUE on a column is used (else a unique index).
no setterinherited
quoteClose → String
no setterinherited
quoteOpen → String
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsUnsigned → bool
Whether UNSIGNED is supported.
no setterinherited

Methods

columnIndexes(Blueprint blueprint) → List<IndexDefinition>
Indexes implied by .index() / .unique() column modifiers.
inherited
columnInfo(Map<String, Object?> row) → ColumnInfo
Normalizes a raw column row from compileColumns.
override
compileAlter(Blueprint blueprint) → List<String>
ALTER statements for blueprint (PostgreSQL/MySQL style; SQLite uses SqliteTableRebuilder when needed).
inherited
compileChange(String table, ColumnDefinition column) → List<String>
Statements altering an existing column to match column.
override
compileColumn(ColumnDefinition column) → String
name TYPE [NULL|NOT NULL] [DEFAULT ...] [UNIQUE] [PRIMARY KEY].
inherited
compileColumns() → String
Query returning raw column rows for table (one binding: table name).
override
compileCreate(Blueprint blueprint) → List<String>
inherited
compileDrop(String table) → String
override
compileDropForeign(String table, String name) → String
inherited
compileDropIfExists(String table) → String
override
compileDropIndex(String table, String name) → String
inherited
compileForeignClause(String table, ForeignKeyDefinition key) → String
Inline CONSTRAINT ... FOREIGN KEY clause.
inherited
compileIndex(String table, IndexDefinition index) → String
inherited
compileListTables() → String
Query listing user table names (column name).
override
compileRename(String from, String to) → String
inherited
compileTableExists() → String
Query returning one row when table exists (one binding: table name).
override
defaultClause(ColumnDefinition column) → String
inherited
literal(Object? value) → String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
typeFor(ColumnDefinition column) → String
SQL type for column.
override
wrap(String identifier) → String
Quotes an identifier after validating its characters (never trusts input: an invalid identifier throws instead of being interpolated).
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited