fix: address lineage review feedback

This commit is contained in:
SuLea-IT
2026-05-03 06:02:39 +08:00
parent 5a37f584aa
commit 4d6cd5351c
26 changed files with 671 additions and 139 deletions
+2 -8
View File
@@ -7,6 +7,7 @@ import {
} from "@/components/ui/dialog";
import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
import { Label } from "@/components/ui/label";
import {
Select, SelectContent, SelectItem, SelectTrigger, SelectValue,
} from "@/components/ui/select";
@@ -161,14 +162,7 @@ async function executeSql() {
executing.value = true;
try {
await store.ensureConnected(targetConnectionId.value);
const statements = syncSql.value
.split(";")
.map((s) => s.trim())
.filter((s) => s && !s.startsWith("--"));
for (const sql of statements) {
await api.executeQuery(targetConnectionId.value, targetDatabase.value, sql);
}
await api.executeScript(targetConnectionId.value, targetDatabase.value, syncSql.value);
toast(t("diff.syncSuccess"), 2000);
open.value = false;
} catch (e: any) {