import { QueryResult } from '../../driver/database-connection.js' ; import { RootOperationNode } from '../../query-compiler/query-compiler.js' ; import { WithSchemaTransformer } from './with-schema-transformer.js' ; import { KyselyPlugin , PluginTransformQueryArgs , PluginTransformResultArgs , } from '../kysely-plugin.js' ; import { UnknownRow } from '../../util/type-utils.js' ; export class WithSchemaPlugin implements KyselyPlugin { readonly #transformer : WithSchemaTransformer ; constructor ( schema ) { this . #transformer = new WithSchemaTransformer ( schema ) ; } transformQuery ( args ) { return this . #transformer . transformNode ( args . node ) ; } async transformResult ( args ) { return args . result ; } }