kysely-sqlite
    Preparing search index...

    Class SqliteDialect

    SQLite dialect that uses the node:sqlite library.

    The constructor takes an instance of SqliteDialectConfig.

    import { DatabaseSync } from 'node:sqlite'

    new SqliteDialect({
    database: new DatabaseSync("db.sqlite")
    })

    If you want the pool to only be created once it's first used, database can be a function:

    import { DatabaseSync } from 'node:sqlite'

    new SqliteDialect({
    database: async () => new DatabaseSync("db.sqlite")
    })

    Implements

    • Dialect
    Index

    Constructors

    Methods

    • Creates an adapter for the dialect.

      Returns DialectAdapter

    • Creates a driver for the dialect.

      Returns Driver

    • Creates a database introspector that can be used to get database metadata such as the table names and column names of those tables.

      db never has any plugins installed. It's created using Kysely.withoutPlugins.

      Parameters

      • db: Kysely<unknown>

      Returns DatabaseIntrospector

    • Creates a query compiler for the dialect.

      Returns QueryCompiler