Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MysqlDialectConfig

interface MysqlDialectConfig {
onCreateConnection?: (connection: DatabaseConnection) => Promise<void>;
pool: MysqlPool | (() => Promise<MysqlPool>);
}

§Properties

§
onCreateConnection?: (connection: DatabaseConnection) => Promise<void>
[src]

Called once for each created connection.

§
pool: MysqlPool | (() => Promise<MysqlPool>)
[src]

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