💾 Archived View for iich.space › src › db › index.ts captured on 2021-12-03 at 14:04:38.
-=-=-=-=-=-=-
import Database from 'better-sqlite3'; import { createLogger } from '@/log'; const log = createLogger(); export default new Database(process.env.DATABASE_URL!, { verbose: process.env.NODE_ENV === 'production' ? undefined : (...args) => log.debug(...args), });