Patched DB creation and added CLI toolchain base

This commit is contained in:
fedyna-k
2025-01-20 08:31:12 +01:00
parent cc9def9c96
commit 282f618386
4 changed files with 66 additions and 0 deletions
+2
View File
@@ -1,6 +1,8 @@
import { Database } from "@db/sqlite";
export default async function ensureDatabases() {
await Deno.mkdir("databases/data", { recursive: true });
for await (const file of Deno.readDir("databases/init")) {
if (!file.isFile) {
console.warn(`[WARN] Path ${file.name} is not a file.`);