INNER CODE UNIT · TypeScript
openSqlite
VityaSchel/lufin · backend/src/db/sqlite/index.ts:149
export async function openSqlite(filePath: string) {
console.log("Opening SQLite database...");
const sqlite = new Database(filePath);
const client = drizzle({ client: sqlite });
console.log("Opened SQLite database");
return sqliteDb(client, sqlite);
}