PostgreSqlAdapter class

Implemented types

Constructors

PostgreSqlAdapter()

Properties

driverName String
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
migrationsTable String
Name of the table/collection the migration history is recorded in. Must match whatever getMigrationsTableSql creates.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

adaptQuery(String query) String
override
escapeIdentifier(String identifier) String
override
formatValue(dynamic value) String
override
getMigrationsTableSql() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderAddIndex(String tableName, IndexBlueprint index) List<String>
override
renderAlterAddColumns(String table, TableBlueprint changes, {String afterColumn = '', String beforeColumn = ''}) List<String>
override
renderCreateTable(TableBlueprint blueprint, {bool ifNotExists = false}) List<String>
override
renderDropColumn(String tableName, String columnName) List<String>
override
renderDropIndex(String tableName, String indexName) List<String>
override
renderDropTable(String tableName, {bool ifExists = false}) List<String>
override
renderRenameColumn(String tableName, String oldName, String newName) List<String>
override
renderRenameTable(String oldName, String newName) List<String>
override
renderTableOptions(String tableName, {String? engine, String? charset, String? collation, String? comment, int? autoIncrement}) List<String>
Renders table-level options set through TableDefinition (engine, charset, collation, comment, auto-increment seed). Most of these are MySQL-only; adapters return an empty list for options their engine has no equivalent for, so a migration stays portable across drivers.
override
supports(String driver) bool
override
toString() String
A string representation of this object.
inherited

Operators

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