PostgresDb class

Constructors

PostgresDb({required String host, int port = 5432, required String databaseName, required String username, required String password, int timeoutInSeconds = 30, int queryTimeoutInSeconds = 30, String timeZone = 'UTC', bool useSSL = false, bool isUnixSocket = false, bool allowClearTextPassword = false, ReplicationMode replicationMode = ReplicationMode.none})
PostgresDb.fromUrl(String url, {int port = 5432, int timeoutInSeconds = 30, int queryTimeoutInSeconds = 30, String timeZone = 'UTC', bool useSSL = false, bool isUnixSocket = false, bool allowClearTextPassword = false, ReplicationMode replicationMode = ReplicationMode.none})

Properties

databaseName String
latefinal
db PostgreSQLConnection
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
host String
latefinal
password String
latefinal
port int
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String
latefinal

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future
query(String query, {Map<String, dynamic>? substitutionValues, bool? allowReuse, int? timeoutInSeconds, bool? useSimpleQueryProtocol}) Future
table(String tableName) PostgresTable
toString() String
A string representation of this object.
inherited

Operators

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