kysely
Version:
Type safe SQL query builder
15 lines (14 loc) • 429 B
JavaScript
/// <reference types="./with-schema-plugin.d.ts" />
import { WithSchemaTransformer } from './with-schema-transformer.js';
export class WithSchemaPlugin {
#transformer;
constructor(schema) {
this.#transformer = new WithSchemaTransformer(schema);
}
transformQuery(args) {
return this.#transformer.transformNode(args.node);
}
async transformResult(args) {
return args.result;
}
}