mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
feat: 增加构建 sqlite3 二进制文件的脚本
This commit is contained in:
parent
e748155032
commit
9971418b8c
6 changed files with 73 additions and 20 deletions
|
|
@ -27,7 +27,9 @@ const dbFilePath = path.resolve(
|
|||
)
|
||||
createFileIfNotExist(dbFilePath)
|
||||
|
||||
const sqlite = new SQLite3(dbFilePath)
|
||||
const sqlite = new SQLite3(dbFilePath, {
|
||||
nativeBinding: path.join(__dirname, `./better_sqlite3_${process.arch}.node`),
|
||||
})
|
||||
sqlite.pragma('auto_vacuum = FULL')
|
||||
|
||||
// Init tables if not exist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue