@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";Functions
Section titled “Functions”| 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". |
Type aliases
Section titled “Type aliases”| 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. |