printear queries

This commit is contained in:
Cat /dev/Nulo 2024-02-06 23:44:16 -03:00
parent 9d9249e2b3
commit eca98c616e

View file

@ -9,7 +9,7 @@ import { migrateDb } from "./migrate.js";
let db = null; let db = null;
export function getDb() { export function getDb() {
const sqlite = new Database(DB_PATH); const sqlite = new Database(DB_PATH);
db = drizzle(sqlite, { schema }); db = drizzle(sqlite, { schema, logger: true });
migrateDb(db); migrateDb(db);
return db; return db;
} }