Skip to content

Type Alias: DrizzleDialect ​

ts
type DrizzleDialect = "pg" | "sqlite" | "mysql";

Defined in: packages/drizzle/src/adapter.ts:66

SQL dialect of the Drizzle database. It only changes how inserts are written:

  • 'pg' / 'sqlite': INSERT ... RETURNING and ON CONFLICT DO NOTHING
  • 'mysql': $returningId() (no RETURNING in MySQL) and a no-op ON DUPLICATE KEY UPDATE

Released under the MIT License. Inspired by spatie/laravel-permission.