postgresql.constants library

Export shorthand constants for enums at top-level.

Constants

authenticated → const ConnectionState
ConnectionState.authenticated
authenticating → const ConnectionState
ConnectionState.authenticating
begun → const TransactionState
TransactionState.begun
busy → const ConnectionState
ConnectionState.busy
closed → const ConnectionState
ConnectionState.closed
error → const TransactionState
TransactionState.error
idle → const ConnectionState
ConnectionState.idle
initial → const PoolState
PoolState.initial
none → const TransactionState
TransactionState.none
notConnected → const ConnectionState
ConnectionState.notConnected
peConnectionClosed → const int
Errors used in PostgresqlException.exception when Pool.connect failed.
4003
peConnectionFailed → const int
Errors used in PostgresqlException.exception when Pool.connect failed.
40004
peConnectionTimeout → const int
Errors used in PostgresqlException.exception when Pool.connect failed.
4001
pePoolStopped → const int
Errors used in PostgresqlException.exception when Pool.connect failed.
4002
readCommitted → const Isolation
Isolation.readCommitted
repeatableRead → const Isolation
Isolation.repeatableRead
running → const PoolState
PoolState.running
serializable → const Isolation
Isolation.serializable
socketConnected → const ConnectionState
ConnectionState.socketConnected
startFailed → const PoolState
PoolState.startFailed
starting → const PoolState
PoolState.starting
stopped → const PoolState
PoolState.stopped
stopping → const PoolState
PoolState.stopping
streaming → const ConnectionState
ConnectionState.streaming
unknown → const TransactionState
TransactionState.unknown