DVPostgresDatabaseAdapter class
DV.Database on PostgreSQL.
Placeholders use the adapter contract's ? and are translated to
Postgres's $1..$n outside string literals, so SQL written against the
SQLite adapter runs unchanged. Parameters travel through the extended
query protocol — never interpolated into SQL.
- Implemented types
- Available extensions
Constructors
- DVPostgresDatabaseAdapter({String host = '127.0.0.1', int port = 5432, required String database, String user = 'postgres', String? password, DVSslMode sslMode = DVSslMode.prefer, DVPostgresConnect? connector})
Properties
- database → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
final
- password → String?
-
final
- port → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sslMode → DVSslMode
-
How much this connection insists on encryption.
final
- user → String
-
final
Methods
-
classify(
DVSchemaChange change) → Future< DVSchemaChangeClass?> -
override
-
classify(
DVSchemaChange change) → Future< DVSchemaChangeClass?> -
Available on DVDatabaseAdapter, provided by the DVDatabaseAdapterSchemaClassification extension
-
close(
) → Future< void> -
execute(
String sql, [List< Object?> ? params]) → Future<int> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
String sql, [List< Object?> ? params]) → Future<List< Map< >String, Object?> > -
override
-
schemaRules(
) → Future< DVPostgresSchemaRules> - What each schema change costs on the server this adapter is connected to, read from that server's own version.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
translatePlaceholders(
String sql) → String -
?placeholders become$1..$n, skipping quoted strings so a literal question mark in data is left alone.