Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: remove unused mock data function (#8370)

boojack47b9740063f1
diff --git a/frontend/src/store/modules/sqlEditor.ts b/frontend/src/store/modules/sqlEditor.ts
index d25906d0f6..cda51dd14f 100644
--- a/frontend/src/store/modules/sqlEditor.ts
+++ b/frontend/src/store/modules/sqlEditor.ts
@@ -6,7 +6,6 @@ import {
ActivitySQLEditorQueryPayload,
} from "@/types";
import { UNKNOWN_ID } from "@/types";
-import { QueryResult } from "@/types/proto/v1/sql_service";
import { useLegacySQLStore } from "./sql";
import { useTabStore } from "./tab";
import { useInstanceV1Store, useSQLStore, useActivityV1Store } from "./v1";
@@ -99,22 +98,3 @@ export const useSQLEditorStore = defineStore("sqlEditor", {
},
},
});
-
-export const mockAffectedV1Rows0 = (): QueryResult => {
- return QueryResult.fromPartial({
- columnNames: ["Affected Rows"],
- columnTypeNames: ["BIGINT"],
- masked: [false],
- error: "",
- statement: "",
- rows: [
- {
- values: [
- {
- int64Value: 0,
- },
- ],
- },
- ],
- });
-};
diff --git a/frontend/src/store/modules/v1/webTerminal.ts b/frontend/src/store/modules/v1/webTerminal.ts
index f6a1ce211c..5e110b62b0 100644
--- a/frontend/src/store/modules/v1/webTerminal.ts
+++ b/frontend/src/store/modules/v1/webTerminal.ts
@@ -220,6 +220,7 @@ const createStreamingQueryController = (tab: TabInfo) => {
status: extractGrpcStatusCode(error),
advices: [],
results: [],
+ allowExport: false,
};
if (result.status === Status.ABORTED && !result.error) {
result.error = "Aborted";
@@ -274,7 +275,7 @@ const useQueryStateLogic = (qs: WebTerminalQueryState) => {
};
export const mockAffectedV1Rows0 = (): QueryResult => {
- return {
+ return QueryResult.fromPartial({
columnNames: ["Affected Rows"],
columnTypeNames: ["BIGINT"],
masked: [false],
@@ -289,7 +290,7 @@ export const mockAffectedV1Rows0 = (): QueryResult => {
],
},
],
- };
+ });
};
const mapRequest = (