You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
379 B
10 lines
379 B
import { Sequelize } from "sequelize"
|
|
import path from "path"
|
|
import { baseDir } from "@/util"
|
|
|
|
export const sequelize = new Sequelize({
|
|
dialect: "sqlite",
|
|
storage: process.env.SQLITE_PATH || path.resolve(baseDir, "./data/data.db"),
|
|
// logging: false,
|
|
logging: loggerSQL.debug.bind(loggerSQL) // Alternative way to use custom logger, displays all messages
|
|
})
|