feat(editor): add SQL context menu actions
This commit is contained in:
1 parent
5b40487753
commit
b406c0a52c
11 files changed
+64
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user