Skip to content

@xtandard/flags/drizzle/mysql

MySQL table factory for the Drizzle storage adapter: mysqlFlagsTable puts the flags key/value table in your Drizzle schema and migrations. Schema-only. Optional peer dependency: drizzle-orm.

Entry point for the @xtandard/flags/drizzle/mysql subpath export.

import { … } from "@xtandard/flags/drizzle/mysql";
Name Summary
mysqlFlagsTable Build the MySQL mysqlTable for the flags KV store: key varchar PRIMARY KEY (utf8mb4_bin), value json NOT NULL.
Name Summary
MysqlFlagsTableOptions Options for mysqlFlagsTable: keyLength (default 512; keep within your InnoDB index-prefix limit), keyCollation (default utf8mb4_bin; opt into utf8mb4_0900_bin / utf8mb4_nopad_bin for new tables), extraColumns and extraIndexes.