import { QueryResult } from '../../driver/database-connection.js' ; import { RootOperationNode } from '../../query-compiler/query-compiler.js' ; import { UnknownRow } from '../../util/type-utils.js' ; import { KyselyPlugin , PluginTransformQueryArgs , PluginTransformResultArgs , } from '../kysely-plugin.js' ; import { ImmediateValueTransformer } from './immediate-value-transformer.js' ; internal export class ImmediateValuePlugin implements KyselyPlugin { readonly #transformer = new ImmediateValueTransformer ( ) ; transformQuery ( args ) { return this . #transformer . transformNode ( args . node ) ; } transformResult ( args ) { return Promise . resolve ( args . result ) ; } }