Skip to content

@xtandard/links/drizzle/mysql

MySQL Drizzle table factory for the links KV store: mysqlLinksTable() puts the table in your Drizzle schema and migrations. Schema-only.

import { … } from "@xtandard/links/drizzle/mysql";
Name Summary
mysqlLinksTable Build the MySQL mysqlTable for the links KV store: key varchar PRIMARY KEY (utf8mb4_bin), value json NOT NULL. The table name defaults to "xtandard_links_kv".
Name Summary
MysqlLinksTableOptions Options for mysqlLinksTable: 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.