This interface is the subset of better-sqlite3 driver's Database class that kysely needs.

We don't use the type from better-sqlite3 here to not have a dependency to it.

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

interface SqliteDatabase {
    close(): void;
    prepare(sql): SqliteStatement;
}

Methods

Methods

  • Returns void

  • Parameters

    • sql: string

    Returns SqliteStatement