feat: execute selected sql (#13)

Co-authored-by: SuLe <sule@SuLedeMacBook-Air.local>
This commit is contained in:
SuLea-IT
2026-04-30 14:38:26 +08:00
committed by GitHub
co-authored by SuLe
parent 62ae308914
commit e3b8f57326
8 changed files with 87 additions and 17 deletions
+4
View File
@@ -0,0 +1,4 @@
export function resolveExecutableSql(fullSql: string, selectedSql: string): string {
const trimmedSelection = selectedSql.trim();
return trimmedSelection ? trimmedSelection : fullSql;
}