createMySQLEngine
createMySQLEngine(
config):Engine
Defined in: engine.ts:493
Create an Engine backed by mysql2 (promise API).
import mysql from "mysql2/promise";import { createMySQLEngine } from "@protoutil/repo/mysql";
const engine = createMySQLEngine({ client: mysql.createPool({ host: "localhost", user: "root", database: "app" }),});Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”Engine