@joktec/mysql
Version:
JokTec - MySql Service
61 lines • 1.57 kB
TypeScript
import { ClientConfig } from '@joktec/core';
export declare class MysqlSlaveConfig {
host: string;
port: number;
username: string;
password: string;
database: string;
constructor(props: MysqlSlaveConfig);
}
export declare enum Dialect {
MYSQL = "mysql",
POSTGRES = "postgres",
COCKROACHDB = "cockroachdb",
SAP = "sap",
MARIADB = "mariadb",
SQLITE = "sqlite",
CORDOVA = "cordova",
REACT_NATIVE = "react-native",
NATIVESCRIPT = "nativescript",
SQLJS = "sqljs",
ORACLE = "oracle",
MSSQL = "mssql",
MONGODB = "mongodb",
AURORA_MYSQL = "aurora-mysql",
AURORA_POSTGRES = "aurora-postgres",
EXPO = "expo",
BETTER_SQLITE3 = "better-sqlite3",
CAPACITOR = "capacitor",
SPANNER = "spanner"
}
export declare enum MysqlLogLevel {
query = "query",
schema = "schema",
error = "error",
warn = "warn",
info = "info",
log = "log",
migration = "migration"
}
export declare class MysqlBenchmarkConfig {
enable?: boolean;
all?: boolean;
level?: MysqlLogLevel[];
constructor(props?: Partial<MysqlBenchmarkConfig>);
}
export declare class MysqlConfig extends ClientConfig {
dialect?: Dialect;
host?: string;
port?: number;
username: string;
password: string;
database: string;
charset?: string;
timezone?: string;
connectTimeout?: number;
slaves?: MysqlSlaveConfig[];
sync?: boolean;
benchmark?: MysqlBenchmarkConfig;
constructor(props: MysqlConfig);
}
//# sourceMappingURL=mysql.config.d.ts.map