File size: 237 Bytes
4ffd659
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sqlite3 from "sqlite3"
import { open } from "sqlite"

const getDB = async () => {
  const db = await open({
    filename: process.cwd() + "/run/database.db",
    driver: sqlite3.Database,
  })

  return db
}

export default getDB