Add CLI admin panel

This commit is contained in:
2026-03-22 06:42:51 +01:00
parent 35c4ca3853
commit 4ae7fcf6a5
22 changed files with 577 additions and 114 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import type {
BUN_SQLITE_FieldSchemaType,
BUN_SQLITE_TableSchemaType,
} from "../../types";
import { AppData } from "../../data/app-data";
// Schema Manager Class
class SQLiteSchemaManager {
@@ -24,7 +25,7 @@ class SQLiteSchemaManager {
recreate_vector_table?: boolean;
}) {
this.db = DbClient;
this.db_manager_table_name = "__db_schema_manager__";
this.db_manager_table_name = AppData["DbSchemaManagerTableName"];
this.db.run("PRAGMA foreign_keys = ON;");
this.recreate_vector_table = recreate_vector_table;
this.createDbManagerTable();