mirror of
https://github.com/zenstackhq/zenstack
synced 2026-05-24 10:08:55 +00:00
* WIP * feat: tanstack-query/react CRUD hooks implementation * fix build * addressing PR comments * update * update * migrate tests * update * fix test environment * use happy-dom instead of jsdom
10 lines
315 B
TypeScript
10 lines
315 B
TypeScript
import { schema } from '@/zenstack/schema';
|
|
import { ZenStackClient } from '@zenstackhq/orm';
|
|
import SQLite from 'better-sqlite3';
|
|
import { SqliteDialect } from 'kysely';
|
|
|
|
export const db = new ZenStackClient(schema, {
|
|
dialect: new SqliteDialect({
|
|
database: new SQLite('./zenstack/dev.db'),
|
|
}),
|
|
});
|