feat(saved-sql): run queries in the current database

This commit is contained in:
zhangyc
2026-07-31 01:57:39 +08:00
committed by GitHub
parent 4062f11a26
commit e2ba75b102
22 changed files with 501 additions and 51 deletions
+6
View File
@@ -12,3 +12,9 @@ test("SQL library imports use the charset-aware external SQL reader", () => {
assert.match(handler, /await api\.readExternalSqlFile\(path\)/);
assert.doesNotMatch(handler, /readTextFile/);
});
test("SQL library file menu can open a file with the current tab target", () => {
assert.match(source, /label: t\("sqlLibrary\.openInCurrentDatabase"\)/);
assert.match(source, /action: \(\) => openFile\(target, "current"\)/);
assert.match(source, /disabled: !hasCurrentSavedSqlExecutionTarget\.value/);
});