💾 Archived View for iich.space › src › db › index.ts captured on 2022-03-01 at 15:59:47.

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

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),
});