mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
Update knex.d.ts MariaConnectionConfig to support all properties defined for mariasql driver
This commit is contained in:
34
knex/knex.d.ts
vendored
34
knex/knex.d.ts
vendored
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user