feat: add basic webui
This commit is contained in:
12
packages/database/index.ts
Normal file
12
packages/database/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { env } from '@konobangu/env';
|
||||
import { buildDatabase } from './builder';
|
||||
|
||||
// Database interface is passed to Kysely's constructor, and from now on, Kysely
|
||||
// knows your database structure.
|
||||
// Dialect is passed to Kysely's constructor, and from now on, Kysely knows how
|
||||
// to communicate with your database.
|
||||
const { db, dialect, pool } = buildDatabase(env.DATABASE_URL);
|
||||
|
||||
export const database = db;
|
||||
|
||||
export { db, dialect, pool };
|
||||
Reference in New Issue
Block a user