class DrizzleAdapter
implements IDatabaseAdapter
Since 0.1.0

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.

Constructors

DrizzleAdapter(options?: DatabaseAdapterOptions)

Properties

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.

The branded transaction bridge either accepts every portable level or no isolation request at all; it is the application's explicit guarantee.

Methods

[DRIZZLE_QUERY_HANDLE](): NativeDrizzleQueryHandle

Provide the exact configured instance to the package's typed Drizzle accessor.

Begin a transaction, returning a handle that can open transaction-scoped data sources as well as commit and roll back.

connect(): Promise<void>

Open a non-transactional data source for the named entity.

deprecated
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.