Pool class abstract

A connection pool for PostgreSQL database connections.

Constructors

Pool(String databaseUri, {String? poolName, int? minConnections, int? maxConnections, int? limitConnections, void onMaxConnection(int count)?, void onExecute(String sql, dynamic values)?, void onQuery(String sql, dynamic values)?, Duration? startTimeout, Duration? stopTimeout, Duration? establishTimeout, Duration? connectionTimeout, Duration? idleTimeout, Duration? limitTimeout, Duration? maxLifetime, Duration? leakDetectionThreshold, bool? testConnections, bool? restartIfAllConnectionsLeaked, String? applicationName, String? timeZone, TypeConverter? typeConverter})
See PoolSettings for a description of settings.
factory
Pool.fromSettings(PoolSettings settings, {TypeConverter? typeConverter})
factory

Properties

busyConnectionCount int
Number of busy connections.
no setter
connections List<PooledConnection>
no setter
hashCode int
The hash code for this object.
no setterinherited
maxConnectionCount int
The maximal number of concurrent connections that are ever made since started.
no setter
messages Stream<Message>
no setter
pooledConnectionCount int
Number of the pooled connections.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state PoolState
no setter
typeConverter TypeConverter
The type converter for encoding and decoding values between Dart and database.
no setter
waitQueueLength int
no setter

Methods

connect() Future<Connection>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future
stop() Future
toString() String
A string representation of this object.
inherited

Operators

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