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
354 B
10 lines
354 B
import { Sequelize } from "sequelize"
|
|
import path from "path"
|
|
import { sourceDir } from "@/util"
|
|
|
|
export const sequelize = new Sequelize({
|
|
dialect: "sqlite",
|
|
storage: path.resolve(sourceDir, "./db/data.db"),
|
|
// logging: false,
|
|
logging: loggerSQL.debug.bind(loggerSQL) // Alternative way to use custom logger, displays all messages
|
|
})
|