interface IAuditDbClient

Structural shape of an injected database client facade. The DB backend is inject-only — it never touches the database capability token.

Methods

insert(
table: string,
row: Record<string, unknown>
): Promise<void>
select(
table: string,
criteria?: Record<string, unknown>
): Promise<Record<string, unknown>[]>

Usage

import { type IAuditDbClient } from "audit-plugin/src/index.ts";