Skip to content
# Function: createMysql2Adapter()

createMysql2Adapter(client, options?): AshibaMysql2Adapter

Defined in: packages/driver-adapter-mysql2/src/index.ts:124

Create a thin adapter around a mysql2-compatible client or pool.

Parameters

client

Mysql2Queryable

options?

AshibaMysql2AdapterOptions = {}

Returns

AshibaMysql2Adapter

Released under the MIT License.