function getDrizzleDatabase
Since 0.2.0
getDrizzleDatabase<TDatabase extends object>(): TDatabase

Returns the exact configured outer Drizzle database for a database service.

Type Parameters

TDatabase extends object

Exact application Drizzle database type

Parameters

Database service created by this package

Opaque configuration supplied to this plugin instance

Return Type

The identical configured outer database

Throws

Error

If the service, adapter, configuration, or runtime scope does not match

Usage

import { getDrizzleDatabase } from "database-plugin/src/index.ts";