Skip to content

Commit 6a8e85e

Browse files
jakobcvetkodziraf
authored andcommitted
Using provided schema if present
1 parent 4ac9afd commit 6a8e85e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dialects/postgres.parser.ts

+3
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export class PostgresParser extends BaseDatabaseParser {
8585
}
8686

8787
public async getSchema() {
88+
if (this.connectionOptions.schema) {
89+
return this.connectionOptions.schema;
90+
}
8891
const query = await this.knex.raw('SELECT current_schema() AS schema_name');
8992
const result = await query;
9093

0 commit comments

Comments
 (0)