UNPKG

476 BTypeScriptView Raw
1import { Database } from './Database';
2import { MySQLConnection } from './MySQLConnection';
3import * as MySQL from 'mysql';
4export declare class MySQLDatabase extends Database {
5 private cluster;
6 constructor();
7 escape(query: string): string;
8 protected _addNode(nodeID: string, config: MySQL.PoolConfig): void;
9 protected _removeNode(nodeID: string): void;
10 protected _getConnection(query: string, requireWriteAccess: boolean): Promise<MySQLConnection>;
11}