Compare commits

..

No commits in common. "38b6b62aba5a3c3a7fc07f5fb918f7315c1bb03e" and "0f4be235fbd3c2803f139a78a6f02f28fc9d612d" have entirely different histories.

4 changed files with 442 additions and 727 deletions

View file

@ -10,12 +10,6 @@ let db = null;
export function getDb() { export function getDb() {
if (db) return db; if (db) return db;
const sqlite = new Database(DB_PATH); const sqlite = new Database(DB_PATH);
sqlite.exec(`PRAGMA journal_mode = WAL;`);
sqlite.exec(`PRAGMA busy_timeout = 15000;`);
sqlite.exec(`PRAGMA synchronous = NORMAL;`);
sqlite.exec(`PRAGMA cache_size = 1000000000;`);
sqlite.exec(`PRAGMA foreign_keys = true;`);
sqlite.exec(`PRAGMA temp_store = memory;`);
db = drizzle(sqlite, { schema, logger: true }); db = drizzle(sqlite, { schema, logger: true });
migrateDb(db); migrateDb(db);
return db; return db;

View file

@ -12,12 +12,12 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"better-sqlite3": "^9.5.0", "better-sqlite3": "^9.2.2",
"drizzle-orm": "^0.30.8" "drizzle-orm": "^0.29.1"
}, },
"devDependencies": { "devDependencies": {
"@types/better-sqlite3": "^7.6.9", "@types/better-sqlite3": "^7.6.8",
"@types/node": "^20.12.7", "@types/node": "^20.10.6",
"drizzle-kit": "^0.20.14" "drizzle-kit": "^0.20.13"
} }
} }

File diff suppressed because it is too large Load diff

View file

@ -14,32 +14,32 @@
"format": "prettier --write ." "format": "prettier --write ."
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/adapter-node": "^2.1.2", "@sveltejs/adapter-node": "^2.0.2",
"@sveltejs/kit": "^2.5.5", "@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.1.0", "@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/better-sqlite3": "^7.6.9", "@types/better-sqlite3": "^7.6.8",
"@types/node": "^20.12.7", "@types/node": "^20.10.6",
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.16",
"db-datos": "workspace:^", "db-datos": "workspace:^",
"postcss": "^8.4.38", "postcss": "^8.4.32",
"postcss-load-config": "^5.0.3", "postcss-load-config": "^5.0.2",
"prettier": "^3.2.5", "prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.2.3", "prettier-plugin-svelte": "^3.1.2",
"prettier-plugin-tailwindcss": "^0.5.13", "prettier-plugin-tailwindcss": "^0.5.9",
"svelte": "^4.2.14", "svelte": "^4.2.7",
"svelte-check": "^3.6.9", "svelte-check": "^3.6.0",
"tailwindcss": "^3.4.3", "tailwindcss": "^3.3.6",
"tslib": "^2.6.2", "tslib": "^2.4.1",
"typescript": "^5.4.5", "typescript": "^5.0.0",
"vite": "^5.2.8" "vite": "^5.0.3"
}, },
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"better-sqlite3": "^9.5.0", "better-sqlite3": "^9.2.2",
"chart.js": "^4.4.2", "chart.js": "^4.4.1",
"chartjs-adapter-dayjs-4": "^1.0.4", "chartjs-adapter-dayjs-4": "^1.0.4",
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
"drizzle-orm": "^0.30.8", "drizzle-orm": "^0.29.1",
"zod": "^3.22.4" "zod": "^3.22.4"
} }
} }