@xtandard/webhooks/drizzle/mysql
MySQL Drizzle table factory for the webhooks KV store: mysqlWebhooksTable()
puts the table in your Drizzle schema and migrations. Schema-only.
import { … } from "@xtandard/webhooks/drizzle/mysql";Functions
Section titled “Functions”| Name | Summary |
|---|---|
mysqlWebhooksTable |
Build the MySQL mysqlTable for the webhooks KV store: key varchar PRIMARY KEY (utf8mb4_bin), value json NOT NULL. The table name defaults to "xtandard_webhooks". |
Type aliases
Section titled “Type aliases”| Name | Summary |
|---|---|
MysqlWebhooksTableOptions |
Options for mysqlWebhooksTable: 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. |