fix: prevent implicit database creation on connection for SQLite (#1986)

This commit is contained in:
hb authored and GitHub committed 2026-06-27 12:31:02 +08:00
1 parent b226ab174b
commit 7b08307896
4 files changed
+18 -18

No files matched your search

@@ -2561,6 +2561,13 @@ async function createDuckDbFilePath() {
const path = ensureDuckDbFileExtension(selected);
form.value.host = path;
try {
const { writeTextFile } = await import("@tauri-apps/plugin-fs");
await writeTextFile(path, "");
} catch (e) {
console.error("Failed to create DuckDB file:", e);
}
}
function ensureSqliteFileExtension(path: string): string {
@@ -2580,6 +2587,13 @@ async function createSqliteFilePath() {
const path = ensureSqliteFileExtension(selected);
form.value.host = path;
try {
const { writeTextFile } = await import("@tauri-apps/plugin-fs");
await writeTextFile(path, "");
} catch (e) {
console.error("Failed to create SQLite file:", e);
}
}
async function browseJdbcDriverPaths() {