@xtandard/audit/storage/drizzle
Drizzle storage: createDrizzleStorage() reads and writes tables you own
(built with the drizzle/* factories) through the Drizzle database you
pass — the KV table, plus the events tables for the native event log. No
DDL, no connection of its own; Postgres, MySQL or SQLite.
import { … } from "@xtandard/audit/storage/drizzle";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createDrizzleStorage |
Create a Drizzle-backed storage. No DDL, no connection ownership. The dialect is detected from db (or set with dialect). With events + eventTargets the result implements the native event log. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
DrizzleStorageOptions |
Options for createDrizzleStorage. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
DrizzleAuditStorage |
A KV-only, compare-and-swap capable AuditStorage over a Drizzle table. For push change-notifications, compose it with ./watch.withWatch + a change source (e.g. ./watch.pgListenNotify) — watch is orthogonal to the adapter. |
DrizzleEventLogAuditStorage |
A Drizzle storage with the native EventLogStorage capability (and compareAndSwap). |
Re-exports
Section titled “Re-exports”| Name | Documented on |
|---|---|
DrizzleAuditTables |
@xtandard/audit/drizzle/mysql |
DrizzleEventsTable |
@xtandard/audit/drizzle/mysql |
DrizzleEventTargetsTable |
@xtandard/audit/drizzle/mysql |