add album downloading and rewrite cache
This commit is contained in:
parent
f2800f13c8
commit
a3cefee49a
33 changed files with 2573 additions and 277 deletions
12
drizzle.config.ts
Normal file
12
drizzle.config.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { defineConfig } from "drizzle-kit";
|
||||
import toml from "toml";
|
||||
import fs from "fs";
|
||||
|
||||
export default defineConfig({
|
||||
out: "./drizzle", // TODO: unhardcode
|
||||
schema: "./src/database/schema.ts",
|
||||
dialect: "sqlite",
|
||||
dbCredentials: {
|
||||
url: toml.parse(fs.readFileSync("config.toml", "utf-8")).downloader.cache.database // TODO: unscuff
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue