Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MySQLClientOptions

Options needed for MySQL client initialization.
MySQLClientOptions.pool and MySQLClientOptions.poolCluster are mutually exclusive options.

Hierarchy

  • MySQLClientOptions

Properties

Optional Readonly attachDebugListeners

attachDebugListeners: boolean | Set<DebuggableEventType>

Whether debug listeners need to be attached on pool.
Depending on value of this param, following actions will be taken:
* undefined | false - debug listeners won't be attached
* true - debug listeners will be attached for all DebuggableEventType

  • Set - debug listeners will be attached only to specified events

Optional Readonly pool

pool: PoolOptions

Configure client with pooled connections.

Optional Readonly poolCluster

poolCluster: PoolClusterConfig

Configure client with pool cluster connections.

Optional Readonly sessionVariablesQueries

sessionVariablesQueries: string[]

Queries to be executed after connection establishment in order to set session variables.