Skip to main content
Version: Next

NodeSqliteDialect

Kysely dialect for node:sqlite (Node.js 22.5+, Deno 2.2+).

Bridges node:sqlite's DatabaseSync to the better-sqlite3 interface that Kysely's SqliteDialect expects.

@example
import { SqliteDriver, NodeSqliteDialect } from '@mikro-orm/sql';

const orm = await MikroORM.init({
driver: SqliteDriver,
dbName: ':memory:',
driverOptions: new NodeSqliteDialect(':memory:'),
});

Hierarchy

  • SqliteDialect
    • NodeSqliteDialect

Index

Constructors

constructor

Methods

inheritedcreateAdapter

  • createAdapter(): DialectAdapter
  • Creates an adapter for the dialect.


    Returns DialectAdapter

inheritedcreateDriver

  • createDriver(): Driver
  • Creates a driver for the dialect.


    Returns Driver

inheritedcreateIntrospector

  • createIntrospector(db): DatabaseIntrospector
  • 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

    Returns DatabaseIntrospector

inheritedcreateQueryCompiler

  • createQueryCompiler(): QueryCompiler
  • Creates a query compiler for the dialect.


    Returns QueryCompiler