PostgresDdlGenerator class
DDL generator for PostgreSQL.
- Inheritance
-
- Object
- DdlGenerator
- PostgresDdlGenerator
Constructors
- PostgresDdlGenerator()
-
DDL generator for PostgreSQL.
const
Properties
- dialect → SqlDialect
-
The SQL dialect used by this generator.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
alterTable(
AlterTable operation) → String -
Expresses every change
operationcarries, column changes, checks, and this table's index changes.override -
createIndex(
IndexInfo index, {bool ifNotExists = false}) → String -
Generates a CREATE INDEX statement.
override
-
createTable(
TableInfo table, {bool ifNotExists = false}) → String -
Generates a CREATE TABLE statement.
override
-
dropIndex(
String indexName) → String -
Generates a DROP INDEX statement.
override
-
dropTable(
String tableName) → String -
Generates a DROP TABLE statement.
override
-
escapeName(
String name) → String -
Escape
namethrough the dialect.inherited -
generate(
List< DiffOperation> operations) → String -
Generates SQL DDL statements from a list of diff operations.
inherited
-
getColumnType(
ColumnInfo column) → String -
Gets the SQL type string for a column.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
DiffOperation operation) → String -
Renders a single operation through the dialect's methods.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited