mysqlKvTable
function mysqlKvTable(name, opts?): DrizzleKvTable;Defined in: src/drizzle/mysql.ts:73
Build a Drizzle mysqlTable for the KV storage: key varchar(keyLength) … COLLATE utf8mb4_bin PRIMARY KEY, value json NOT NULL. name is required (ADR 0005).
Tables created before the key column was binary-collated can be fixed with:
ALTER TABLE <name> MODIFY `key` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
name |
string |
opts? |
MysqlKvTableOptions |