Update knex.d.ts MariaConnectionConfig to support all properties defined for mariasql driver

This commit is contained in:
Jon Sheppard
2016-02-20 19:42:26 +11:00
parent 95b7178e0e
commit 2085793a2c

34
knex/knex.d.ts vendored
View File

@@ -413,12 +413,36 @@ declare module "knex" {
debug?: boolean;
}
// Config object for mariasql: https://github.com/mscdex/node-mariasql#client-methods
interface MariaSqlConnectionConfig {
host: string;
user: string;
password: string;
db: string;
debug?: boolean;
user?: string;
password?: string;
host?: string;
port?: number;
unixSocket?: string;
protocol?: string;
db?: string;
keepQueries?: boolean;
multiStatements?: boolean;
connTimeout?: number;
pingInterval?: number;
secureAuth?: boolean;
compress?: boolean;
ssl?: boolean|MariaSslConfiguration;
local_infile?: boolean;
read_default_file?: string;
read_default_group?: string;
charset?: string;
streamHWM?: number;
}
interface MariaSslConfiguration {
key?: string;
cert?: string;
ca?: string;
capath?: string;
cipher?: string;
rejectUnauthorized?: boolean;
}
/** Used with SQLite3 adapter */