Function MySQLPoolImpl.this

Sets up a connection pool with the provided connection settings.

this (
  string host,
  string user,
  string password,
  string database,
  ushort port = 3306,
  uint maxConcurrent = (uint).max,
  SvrCapFlags capFlags = defaultClientFlags,
  NewConnectionDelegate onNewConnection = null
);

this (
  string host,
  string user,
  string password,
  string database,
  ushort port,
  SvrCapFlags capFlags,
  NewConnectionDelegate onNewConnection = null
);

this (
  string host,
  string user,
  string password,
  string database,
  ushort port,
  NewConnectionDelegate onNewConnection
);

this (
  string connStr,
  uint maxConcurrent = (uint).max,
  SvrCapFlags capFlags = defaultClientFlags,
  NewConnectionDelegate onNewConnection = null
);

this (
  string connStr,
  SvrCapFlags capFlags,
  NewConnectionDelegate onNewConnection = null
);

this (
  string connStr,
  NewConnectionDelegate onNewConnection
);

The optional onNewConnection param allows you to set a callback which will be run every time a new connection is created.