/** * StrictDB SQL Transaction Adapter * * Transaction-scoped adapter extracted from sql-adapter.ts. * Implements DatabaseAdapter for operations within a SQL transaction client. */ import type { DatabaseAdapter } from './adapter.js'; import type { Backend, ConfirmOptions, ConnectionStatus, Driver, LookupOptions, NativeBulkWriteOp, OperationReceipt, QueryOptions, SqlDialect, StrictFilter, UpdateOperators } from '../types.js'; import type { TxClient } from './sql-helpers.js'; export declare class SqlTransactionAdapter implements DatabaseAdapter { readonly backend: Backend; readonly driver: Driver; private client; private dialect; constructor(client: TxClient, dialect: SqlDialect, driver: Driver); connect(): Promise; close(): Promise; status(): ConnectionStatus; queryOne, TDoc = Record>(collection: string, filter: StrictFilter, options?: QueryOptions): Promise; queryMany, TDoc = Record>(collection: string, filter: StrictFilter, options?: QueryOptions): Promise; queryWithLookup(collection: string, options: LookupOptions): Promise; count(collection: string, filter?: StrictFilter): Promise; insertOne(collection: string, doc: T): Promise; insertMany(collection: string, docs: T[]): Promise; updateOne, TDoc = Record>(collection: string, filter: StrictFilter, update: UpdateOperators, upsert?: boolean): Promise; updateMany, TDoc = Record>(collection: string, filter: StrictFilter, update: UpdateOperators): Promise; deleteOne(collection: string, filter: StrictFilter, _options?: ConfirmOptions): Promise; deleteMany(collection: string, filter: StrictFilter, _options?: ConfirmOptions): Promise; aggregate(collection: string, pipeline: Record[]): Promise; nativeBulkWrite(collection: string, operations: NativeBulkWriteOp[]): Promise<{ insertedCount: number; modifiedCount: number; deletedCount: number; insertedIds?: string[]; upsertedIds?: string[]; }>; raw(): unknown; } //# sourceMappingURL=sql-tx-adapter.d.ts.map