mirror of
https://github.com/zenstackhq/zenstack
synced 2026-05-24 10:08:55 +00:00
12 lines
306 B
TypeScript
12 lines
306 B
TypeScript
import type { Database } from './types';
|
|
|
|
import { Kysely } from 'kysely';
|
|
import initSqlJs from 'sql.js';
|
|
|
|
import { SqlJsDialect } from '../../src';
|
|
|
|
const SqlJsStatic = await initSqlJs();
|
|
|
|
export const db = new Kysely<Database>({
|
|
dialect: new SqlJsDialect({ sqlJs: new SqlJsStatic.Database() }),
|
|
});
|