PoolSettings class
Constructors
PoolSettings ({int ? maxConnectionCount , Duration ? maxConnectionAge , Duration ? maxSessionUse , int ? maxQueryCount , String ? applicationName , Duration ? connectTimeout , SslMode ? sslMode , SecurityContext ? securityContext , Encoding ? encoding , String ? timeZone , ReplicationMode? replicationMode , StreamChannelTransformer<Message , Message > ? transformer , Duration ? queryTimeout , QueryMode ? queryMode , bool ? ignoreSuperfluousParameters , bool ? ignoreStackTraces , Future <void > onOpen (Connection connection )?, TypeRegistry? typeRegistry })
const
Properties
applicationName
→ String ?
final inherited
connectTimeout
→ Duration ?
final inherited
encoding
→ Encoding ?
final inherited
hashCode
→ int
The hash code for this object.
no setter inherited
ignoreStackTraces
→ bool ?
When set to true, statement execution uses StackTrace.empty instead
of capturing StackTrace.current, trading caller-pointing error traces
for lower CPU overhead in high-throughput scenarios. Defaults to false.
final inherited
ignoreSuperfluousParameters
→ bool ?
When set, the default query map will not throw exception when superfluous
parameters are found.
final inherited
maxConnectionAge
→ Duration ?
The maximum duration a connection is kept open.
New sessions won't be scheduled after this limit is reached.
final
maxConnectionCount
→ int ?
The maximum number of concurrent sessions.
final
maxQueryCount
→ int ?
The maximum number of queries to be run on a connection.
New sessions won't be scheduled after this limit is reached.
final
maxSessionUse
→ Duration ?
The maximum duration a connection is used by sessions.
New sessions won't be scheduled after this limit is reached.
final
onOpen
→ Future <void > Function(Connection connection ) ?
This callback function will be called after opening the connection.
final inherited
queryMode
→ QueryMode ?
The Query Execution Mode
final inherited
queryTimeout
→ Duration ?
final inherited
replicationMode
→ ReplicationMode?
The replication mode for connecting in streaming replication mode.
final inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
securityContext
→ SecurityContext ?
The SecurityContext to use when opening a connection.
final inherited
sslMode
→ SslMode ?
final inherited
timeZone
→ String ?
final inherited
transformer
→ StreamChannelTransformer<Message , Message > ?
An optional StreamChannelTransformer sitting behind the postgres client
as implemented in the posgres package and the database server.
final inherited
typeRegistry
→ TypeRegistry?
When set, use the type registry with custom types, instead of the
built-in ones provided by the package.
final inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited