2025-05-19 06:59:58 -04:00
|
|
|
// 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',
|
2025-05-19 08:22:33 -04:00
|
|
|
});
|
2025-05-19 06:59:58 -04:00
|
|
|
|
|
|
|
module.exports = Client_PgSpanner;
|