SchemaDialect class abstract

Dialects convert individual schema mutations into executable SQL.

Constructors

SchemaDialect()
const

Properties

driverName String
Identifier for the driver this dialect targets (e.g. postgres).
no setter
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.
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.
compileDisableForeignKeyConstraints() String?
Compiles SQL to disable foreign key constraint checking. Returns null if this dialect doesn't support FK constraint control.
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.
compileEnableForeignKeyConstraints() String?
Compiles SQL to enable foreign key constraint checking. Returns null if this dialect doesn't support FK constraint control.
compileForeignKeys(String table, {String? schema}) String?
Compiles SQL to list foreign keys for a table within an optional schema.
compileIndexes(String table, {String? schema}) String?
Compiles SQL to list indexes for a table within an optional schema.
compileListDatabases() String?
Compiles SQL to list all databases. Returns null if this dialect doesn't support listing databases via SQL.
compileMutation(SchemaMutation mutation) List<SchemaStatement>
compileSchemas({String? schema}) String?
Compiles SQL to list schemas/namespaces.
compileTables({String? schema}) String?
Compiles SQL to list tables for an optional schema.
compileViews({String? schema}) String?
Compiles SQL to list views for an optional schema.
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