import type { IWarehouseAdapter } from '../IWarehouseAdapter.js'; import type { WarehouseQueryResult, WarehouseTransactionFn } from '../types.js'; export class NoOpWarehouseAdapter implements IWarehouseAdapter { readonly name = 'noop-warehouse'; async query( _sql: string, _params: readonly unknown[] = [], ): Promise { return []; } async transaction(fn: WarehouseTransactionFn): Promise { // Execute the callback with the no-op query function. return fn(this.query.bind(this)); } async flush(): Promise { // No buffers maintained. } async close(): Promise { // No external resources. } }