Module

x/kysely_postgrs_js_dialect/mod.ts>kysely.SqliteDialectConfig

Kysely dialect for PostgreSQL using the Postgres.js client.
Latest
interface kysely.SqliteDialectConfig
import { type kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.4/mod.ts";
const { SqliteDialectConfig } = kysely;

Config for the SQLite dialect.

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

optional
onCreateConnection: (connection: DatabaseConnection) => 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.

import kysely.SqliteDialectConfig
import { kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.4/mod.ts";
const { SqliteDialectConfig } = kysely;