PostgresSchemaDialect class
Generates PostgreSQL-compatible SQL for schema mutations.
- Inheritance
-
- Object
- SchemaDialect
- PostgresSchemaDialect
Constructors
- PostgresSchemaDialect()
-
const
Properties
- driverName → String
-
Identifier for the driver this dialect targets (e.g.
postgres).no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compileColumns(
String table, {String? schema}) → String? -
Compiles SQL to list columns for a table within an optional schema.
override
-
compileCreateDatabase(
String name, Map< String, Object?> ? options) → String? -
Compiles SQL to create a database.
Returns null if this dialect doesn't support database creation via SQL.
override
-
compileDisableForeignKeyConstraints(
) → String? -
Compiles SQL to disable foreign key constraint checking.
Returns null if this dialect doesn't support FK constraint control.
override
-
compileDropDatabaseIfExists(
String name) → String? -
Compiles SQL to drop a database if it exists.
Returns null if this dialect doesn't support database dropping via SQL.
override
-
compileEnableForeignKeyConstraints(
) → String? -
Compiles SQL to enable foreign key constraint checking.
Returns null if this dialect doesn't support FK constraint control.
override
-
compileForeignKeys(
String table, {String? schema}) → String? -
Compiles SQL to list foreign keys for a table within an optional schema.
override
-
compileIndexes(
String table, {String? schema}) → String? -
Compiles SQL to list indexes for a table within an optional schema.
override
-
compileListDatabases(
) → String? -
Compiles SQL to list all databases.
Returns null if this dialect doesn't support listing databases via SQL.
override
-
compileMutation(
SchemaMutation mutation) → List< SchemaStatement> -
override
-
compileSchemas(
{String? schema}) → String? -
Compiles SQL to list schemas/namespaces.
override
-
compileTables(
{String? schema}) → String? -
Compiles SQL to list tables for an optional schema.
override
-
compileViews(
{String? schema}) → String? -
Compiles SQL to list views for an optional schema.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited