MysqlAuditTableOptions
Defined in: src/drizzle/mysql.ts:68
Options for mysqlAuditTable.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
extraColumns? |
() => Record<string, MySqlColumnBuilderBase> |
Additional columns merged into the table. | src/drizzle/mysql.ts:84 |
extraIndexes? |
(table) => MySqlTableExtraConfigValue[] |
Additional indexes/constraints; receives the built table for column references. | src/drizzle/mysql.ts:86 |
keyCollation? |
MysqlKeyCollation |
Collation of the key column. Default "utf8mb4_bin" (what every release declared, so drizzle-kit generates no ALTER). It is PAD SPACE: keys that differ only by trailing spaces collide, which the storage turns into a KeyCollisionError. New tables can use "utf8mb4_0900_bin" (MySQL 8.0+) or "utf8mb4_nopad_bin" (MariaDB). Audit keys never end in a space (every segment is URI-encoded), so the default is safe. |
src/drizzle/mysql.ts:82 |
keyLength? |
number |
varchar length for the key primary key. Default 512 (store keys are short slash-delimited paths). Keep within your InnoDB index-prefix limit. |
src/drizzle/mysql.ts:73 |