MySQLConnectionPool constructor
MySQLConnectionPool({})
Creates new pool
Almost all parameters are identical to MySQLConnection.createConnection
Pass maxConnections
to tell pool maximum number of connections it can use
You can specify timeoutMs
, it will be passed to MySQLConnection.connect method when creating new connections
Implementation
MySQLConnectionPool({
required this.host,
required this.port,
required this.userName,
required password,
required this.maxConnections,
this.databaseName,
this.secure = true,
this.collation = 'utf8_general_ci',
this.timeoutMs = 10000,
}) : _password = password;