Patched DB creation and added CLI toolchain base
This commit is contained in:
@@ -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.`);
|
||||
|
||||
Reference in New Issue
Block a user