Interface SqliteDialectConfig

Config for the SQLite dialect.

Hierarchy

  • SqliteDialectConfig

Properties

database: SqliteDatabase | (() => Promise<SqliteDatabase>)

An sqlite Database instance or a function that returns one.

If a function is provided, it's called once when the first query is executed.

https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/api.md#new-databasepath-options

Type declaration

onCreateConnection?: ((connection) => Promise<void>)

Type declaration

    • (connection): Promise<void>
    • Called once when the first query is executed.

      This is a Kysely specific feature and does not come from the better-sqlite3 module.

      Parameters

      Returns Promise<void>

Generated using TypeDoc