/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. */ import { type DatabaseIntrospector, type Dialect, type DialectAdapter, type Driver, type Kysely, type QueryCompiler } from "kysely"; import type { SqliteDialectConfig } from "./dialect-config.ts"; /** * SQLite dialect that uses the [`node:sqlite`](https://nodejs.org/api/sqlite.html) library. * * The constructor takes an instance of {@link SqliteDialectConfig}. * * ```ts * 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: * * ```ts * import { DatabaseSync } from "node:sqlite" * * new SqliteDialect({ * database: async () => new DatabaseSync("db.sqlite"), * }) * ``` */ export declare class SqliteDialect implements Dialect { protected config: SqliteDialectConfig; constructor(config: SqliteDialectConfig); createDriver(): Driver; createQueryCompiler(): QueryCompiler; createAdapter(): DialectAdapter; createIntrospector(db: Kysely): DatabaseIntrospector; } //# sourceMappingURL=dialect.d.ts.map