OptionalcontrolA mysql2 Client constructor, to be used for connecting to the database
outside of the pool to avoid waiting for an idle connection.
This is useful for cancelling queries on the database side.
OptionalonCalled once for each created connection.
OptionalonCalled every time a connection is acquired from the pool.
A mysql2 Pool instance or a function that returns one.
If a function is provided, it's called once when the first query is executed.
https://github.com/sidorares/node-mysql2#using-connection-pools
Config for the MySQL dialect.