Add search path config option to knex.js.

This commit is contained in:
Emm
2016-08-10 21:18:31 +02:00
parent 3fa4079527
commit e0e0f509d5
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -78,6 +78,12 @@ var knex = Knex({
client: 'pg'
});
// searchPath
var knex = Knex({
client: 'pg',
searchPath: 'public',
});
// useNullAsDefault
var knex = Knex({
client: 'sqlite',
+1
View File
@@ -455,6 +455,7 @@ declare module "knex" {
migrations?: MigratorConfig;
acquireConnectionTimeout?: number;
useNullAsDefault?: boolean;
searchPath?: string;
}
interface ConnectionConfig {