Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: release export format as SQL (#6872)
boojack33d773ac6181
diff --git a/backend/api/v1/sql_service.go b/backend/api/v1/sql_service.goindex 16551e1a3a..0428f9f42e 100644--- a/backend/api/v1/sql_service.go+++ b/backend/api/v1/sql_service.go@@ -1673,6 +1673,8 @@ func (s *SQLService) checkQueryRights(attributes["request.export_format"] = "CSV"case v1pb.ExportRequest_JSON:attributes["request.export_format"] = "JSON"+ case v1pb.ExportRequest_SQL:+ attributes["request.export_format"] = "SQL"default:return status.Errorf(codes.InvalidArgument, "invalid export format: %v", exportFormat)}diff --git a/frontend/src/components/Issue/panel/RequestExportPanel/index.vue b/frontend/src/components/Issue/panel/RequestExportPanel/index.vueindex a173f7cc7c..3dad329733 100644--- a/frontend/src/components/Issue/panel/RequestExportPanel/index.vue+++ b/frontend/src/components/Issue/panel/RequestExportPanel/index.vue@@ -135,7 +135,7 @@><NRadio :value="'CSV'" label="CSV" /><NRadio :value="'JSON'" label="JSON" />- <NRadio v-if="isDev" :value="'SQL'" label="SQL" />+ <NRadio :value="'SQL'" label="SQL" /></NRadioGroup></div></div>diff --git a/frontend/src/store/modules/v1/sql.ts b/frontend/src/store/modules/v1/sql.tsindex ce9d3c6d4f..7b6a73e468 100644--- a/frontend/src/store/modules/v1/sql.ts+++ b/frontend/src/store/modules/v1/sql.ts@@ -48,13 +48,15 @@ export const useSQLStore = defineStore("sql", () => {});export const getExportRequestFormat = (- format: "CSV" | "JSON"+ format: "CSV" | "JSON" | "SQL"): ExportRequest_Format => {switch (format) {case "CSV":return ExportRequest_Format.CSV;case "JSON":return ExportRequest_Format.JSON;+ case "SQL":+ return ExportRequest_Format.SQL;default:return ExportRequest_Format.FORMAT_UNSPECIFIED;}diff --git a/frontend/src/views/ExportCenter/types.ts b/frontend/src/views/ExportCenter/types.tsindex bbd3452f0f..dda622e2af 100644--- a/frontend/src/views/ExportCenter/types.ts+++ b/frontend/src/views/ExportCenter/types.ts@@ -15,7 +15,7 @@ export interface ExportRecord {expiration: string;statement: string;maxRowCount: number;- exportFormat: "CSV" | "JSON";+ exportFormat: "CSV" | "JSON" | "SQL";// issueId is the uid of an issue.issueId: string;}