Files
evento/node_modules/kysely/dist/esm/plugin/with-schema/with-schema-plugin.js
2026-03-18 14:55:56 -03:00

15 lines
443 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, args.queryId);
}
async transformResult(args) {
return args.result;
}
}