UNPKG

kysely

Version:
15 lines (14 loc) 429 B
/// <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; } }