feat(editor): add SQL context menu actions

This commit is contained in:
gggaiitx authored and GitHub committed 2026-08-14 12:56:39 +08:00
1 parent 5b40487753
commit b406c0a52c
11 files changed
+64 -4

No files matched your search

+4
View File
@@ -5,6 +5,10 @@ export type SqlFormatDialect = "mysql" | "postgres" | "sqlite" | "sqlserver" | "
export const MAX_SQL_FORMAT_CHARS = 1_000_000;
export function canFormatSqlForDatabaseType(dbType: string | null | undefined): boolean {
return dbType !== "victoriametrics";
}
/**
* Thrown by {@link formatSqlText} when the input is XML-looking and must never
* be run through the SQL formatter. sql-formatter silently rewrites well-formed