Function: detectDialect()
ts
function detectDialect(db): RbacDialect;Defined in: packages/kysely/src/dialect.ts:18
Detects the dialect family from the Kysely instance's dialect adapter. Works for the built-in dialects and for third-party dialects that reuse Kysely's adapters (which nearly all do). Throws when it can't tell — pass { dialect } explicitly then.
Parameters
| Parameter | Type |
|---|---|
db | Kysely<any> |
