Class ReplicationPool<Connection, ConnectionOptions>

Type Parameters

  • Connection extends object
  • ConnectionOptions extends object

Constructors

Properties

#afterAcquire: undefined | ((connection, options) => Promise<void>)

Type declaration

#beforeAcquire: undefined | ((options) => Promise<void>)

Type declaration

#timeoutErrorClass: undefined | Class<TimeoutError>
read: null | Pool<Connection>

Replication read pool. Will only be used if the 'read' replication option has been provided, otherwise the write will be used instead.

write: Pool<Connection>

Accessors

Methods