mirror of
https://github.com/knex/knex.git
synced 2025-07-05 08:01:09 +00:00
28 lines
654 B
JavaScript
28 lines
654 B
JavaScript
![]() |
// Postgres Spanner Driver (postgres-spanner)
|
||
|
// -------
|
||
|
const Client_PG = require('../postgres');
|
||
|
|
||
|
const QueryCompiler = require('./query/pg-spanner-querycompiler');
|
||
|
const SchemaCompiler = require('./schema/pg-spanner-compiler');
|
||
|
|
||
|
class Client_PgSpanner extends Client_PG {
|
||
|
constructor(...args) {
|
||
|
super(...args);
|
||
|
this.driverName = 'postgres-spanner';
|
||
|
}
|
||
|
|
||
|
queryCompiler(builder, formatter) {
|
||
|
return new QueryCompiler(this, builder, formatter);
|
||
|
}
|
||
|
|
||
|
schemaCompiler() {
|
||
|
return new SchemaCompiler(this, ...arguments);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Object.assign(Client_PG.prototype, {
|
||
|
dialect: 'postgresql-spanner',
|
||
|
})
|
||
|
|
||
|
module.exports = Client_PgSpanner;
|