refactor(db): move to core package (#4589)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import Database from "better-sqlite3";
|
||||
import { createDb } from "@homarr/core/infrastructure/db";
|
||||
|
||||
import { database } from "./driver";
|
||||
import { schema } from "./schema";
|
||||
|
||||
export * from "drizzle-orm";
|
||||
|
||||
export const db = database;
|
||||
|
||||
export type Database = typeof db;
|
||||
export type { HomarrDatabaseMysql, HomarrDatabasePostgresql } from "./driver";
|
||||
|
||||
export const db = createDb(schema);
|
||||
|
||||
export type Database = typeof db;
|
||||
|
||||
export { handleDiffrentDbDriverOperationsAsync as handleTransactionsAsync } from "./transactions";
|
||||
|
||||
Reference in New Issue
Block a user