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: use exportFormat flag (#5996)
Danny Xub54a38c4ceea
diff --git a/backend/legacyapi/sql.go b/backend/legacyapi/sql.goindex 5677a1d5b0..a6cd507439 100644--- a/backend/legacyapi/sql.go+++ b/backend/legacyapi/sql.go@@ -53,8 +53,9 @@ type SQLExecute struct {// The maximum row count returned, only applicable to SELECT query.// Not enforced if limit <= 0.Limit int `jsonapi:"attr,limit"`- // The export flag indicates whether the query is used for exporting data.- Export bool `jsonapi:"attr,export"`+ // ExportFomat includes QUERY, CSV, JSON.+ // QUERY is used for querying database. CSV and JSON are the formats used for exporting data.+ ExportFormat string `jsonapi:"attr,exportFormat"`}// SingleSQLResult is the API message for single SQL result.diff --git a/frontend/src/types/sql.ts b/frontend/src/types/sql.tsindex d2174bf559..51725b7148 100644--- a/frontend/src/types/sql.ts+++ b/frontend/src/types/sql.ts@@ -37,6 +37,8 @@ export type QueryInfo = {databaseName?: string;statement: string;limit?: number;+ // exportFomat includes QUERY, CSV, JSON.+ exportFormat?: string;};// TODO(Jim): not used yet