Drizzle adapter wrapping a Drizzle database instance.
The application injects a configured Drizzle driver through
options.drizzleInstance; this adapter lazily loads only Drizzle's query
operators. options.drizzleTables supplies the real table and column
objects used for every operation.
DrizzleAdapter(options?: DatabaseAdapterOptions)
[DATABASE_POOL_CAPACITY]: () => DatabasePoolCapacity
Internal capacity-reader seam (M90b). Attached in the constructor ONLY
when poolStats is configured; DatabasePlugin feature-detects it, and
every other adapter — built-in or custom — carries no member, so
common's port and every non-Drizzle registration stay unchanged.
transactionIsolationLevels: readonly TransactionIsolationLevel[]
The branded transaction bridge either accepts every portable level or no isolation request at all; it is the application's explicit guarantee.
[DRIZZLE_QUERY_HANDLE](): NativeDrizzleQueryHandle
Provide the exact configured instance to the package's typed Drizzle accessor.
beginTransaction(options?: TransactionOptions): Promise<IAdapterTransaction>
Begin a transaction, returning a handle that can open transaction-scoped data sources as well as commit and roll back.
connect(): Promise<void>
createDataSource(entity: string): DataSource
Open a non-transactional data source for the named entity.
createDataSourceForEntity(entity: string): DataSource
Create a DataSource for the named entity using the main instance.
disconnect(): Promise<void>
isReady(): boolean
rawQuery<T>(sql: string,params?: unknown[]): Promise<T[]>
Execute a raw query in the backend's own dialect.