@xtandard/flags/storage/drizzle
Drizzle storage: createDrizzleStorage over a table in your own Drizzle
schema and database (Postgres, MySQL or SQLite). It issues no DDL and owns no
connection; build the table with @xtandard/flags/drizzle/{pg,mysql,sqlite}.
Optional peer dependency: drizzle-orm.
Entry point for the @xtandard/flags/storage/drizzle subpath export.
import { … } from "@xtandard/flags/storage/drizzle";Functions
Section titled “Functions”| Name | Summary |
|---|---|
createDrizzleStorage |
Create a Drizzle-backed DrizzleFlagsStorage. No DDL, no connection ownership; the dialect is read from db. |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
DrizzleFlagsStorage |
A compare-and-swap capable FlagsStorage over a Drizzle table. For push change-notifications, compose it with withWatch + a change source (e.g. pgListenNotify). |