From a454596dea3eb3e007ba0ab1d669b3bbd4b12a55 Mon Sep 17 00:00:00 2001 From: Junil Kim Date: Sun, 26 Apr 2026 14:43:36 +0900 Subject: [PATCH 1/5] feat: add DB menu for runtime database switching Add a "DB" sidebar menu that lets users switch the active database without restarting the server. Supports file-based (directory + filename) and in-memory modes. The server reconfigures the live connection pool and the UI reloads the schema automatically after applying. --- src/components/DBView/DBConfigModal.vue | 299 ++++++++++++++++++++++++ src/components/MainLayout.vue | 23 ++ src/server/API.js | 2 + src/server/DBConfig.js | 23 ++ src/server/utils/Database.js | 35 +++ 5 files changed, 382 insertions(+) create mode 100644 src/components/DBView/DBConfigModal.vue create mode 100644 src/server/DBConfig.js diff --git a/src/components/DBView/DBConfigModal.vue b/src/components/DBView/DBConfigModal.vue new file mode 100644 index 0000000..48eb45a --- /dev/null +++ b/src/components/DBView/DBConfigModal.vue @@ -0,0 +1,299 @@ + + + + + diff --git a/src/components/MainLayout.vue b/src/components/MainLayout.vue index 37d390a..83618d1 100644 --- a/src/components/MainLayout.vue +++ b/src/components/MainLayout.vue @@ -57,6 +57,19 @@
+