MCPcopy Create free account
hub / github.com/bytebase/bytebase / updateBatchQueryContext

Function updateBatchQueryContext

frontend/src/react/stores/sqlEditor/tab.ts:285–299  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

283 },
284
285 updateBatchQueryContext(payload) {
286 const id = get().currentTabId;
287 if (!id) return undefined;
288 const existing = get().tabsById.get(id);
289 if (!existing) return undefined;
290 const previousCtx = existing.batchQueryContext;
291 return get().updateTab(id, {
292 batchQueryContext: {
293 dataSourceType:
294 previousCtx?.dataSourceType ?? DataSourceType.READ_ONLY,
295 ...previousCtx,
296 ...payload,
297 },
298 });
299 },
300
301 removeDatabaseQueryContext({ database, contextId }) {
302 const id = get().currentTabId;

Callers

nothing calls this directly

Calls 2

getFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected