property DatabaseAdapterOptions.drizzleTables
Since 0.1.0

Registry mapping entity name → a real Drizzle table definition. Required when type: 'drizzle' — see DrizzleAdapterOptions, which makes that a compile error rather than a startup throw.

The registry accepts any table definition, including one with a composite primary key. An id column is a REPOSITORY precondition (findById, update and delete are single-key by contract), so it is checked when a repository is asked for rather than at connect() — a table registered only so the typed query builder can name it needs none.

Type

Record<string, unknown>

Usage

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