benchmarks / utils /getDB.js
vincelwt's picture
initial commit
4ffd659 unverified
raw
history blame
237 Bytes
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