kysely
Version:
Type safe SQL query builder
18 lines (17 loc) • 564 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.WithSchemaPlugin = void 0;
const with_schema_transformer_js_1 = require("./with-schema-transformer.js");
class WithSchemaPlugin {
#transformer;
constructor(schema) {
this.#transformer = new with_schema_transformer_js_1.WithSchemaTransformer(schema);
}
transformQuery(args) {
return this.#transformer.transformNode(args.node);
}
async transformResult(args) {
return args.result;
}
}
exports.WithSchemaPlugin = WithSchemaPlugin;
;