Merge pull request #10548 from Emm/master

Add configuration options.
This commit is contained in:
Nathan Shively-Sanders
2016-08-11 08:52:20 -07:00
committed by GitHub
2 changed files with 14 additions and 0 deletions
+12
View File
@@ -78,6 +78,18 @@ var knex = Knex({
client: 'pg'
});
// searchPath
var knex = Knex({
client: 'pg',
searchPath: 'public',
});
// useNullAsDefault
var knex = Knex({
client: 'sqlite',
useNullAsDefault: true,
});
knex('books').insert({title: 'Test'}).returning('*').toString();
// Migrations
+2
View File
@@ -454,6 +454,8 @@ declare module "knex" {
pool?: PoolConfig;
migrations?: MigratorConfig;
acquireConnectionTimeout?: number;
useNullAsDefault?: boolean;
searchPath?: string;
}
interface ConnectionConfig {