k8w-promise-mysql
Version:
Simple native Promise wrapper for mysqljs/mysql
13 lines (12 loc) • 548 B
TypeScript
import * as mysql from 'mysql';
import PromiseMySQLPool from './src/PromiseMySQLPool';
import PromiseMyCluster from './src/PromiseMyCluster';
import MyClusterConfig from './src/MyClusterConfig';
export default class PromiseMySQL {
static createPool(config: mysql.PoolConfig | string): PromiseMySQLPool;
static createCluster(config: MyClusterConfig): PromiseMyCluster;
static escape: typeof mysql.escape;
static escapeId: typeof mysql.escapeId;
static format: typeof mysql.format;
static raw: typeof mysql.raw;
}