PostgreSQLDatabaseAdapter class

DatabaseAdapter implementation for PostgreSQL databases.

Inheritance

Constructors

PostgreSQLDatabaseAdapter(DataSchema schema, String host, int port, String databaseName, {String? username, String? password, int timeoutInSeconds = 30, int queryTimeoutInSeconds = 30, String timeZone = 'UTC', bool useSSL = false, bool isUnixSocket = false})
Parameters represent the constructor parameters of postgres.PostgreSQLConnection

Properties

databaseName String
final
hashCode int
The hash code for this object.
no setterinherited
host String
final
isUnixSocket bool
final
password String?
final
port int
final
queryTimeoutInSeconds int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schema DataSchema
finalinherited
timeoutInSeconds int
final
timeZone String
final
username String?
final
useSSL bool
final

Methods

initializeSchema({bool ignoreMigration = false}) Future<void>
Checks and creates or migrates database tables according to the adapters schema.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openConnection() Future<DatabaseConnection>
Opens a new connection to the database.
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

schemaVersionKey → const String