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

Function persistExpandedKeys

frontend/src/views/sql-editor/Sheet/context.ts:371–378  ·  view source on GitHub ↗
(keys: Set<string>)

Source from the content-addressed store, hash-verified

369};
370
371const persistExpandedKeys = (keys: Set<string>) => {
372 const scope = currentScope();
373 if (!scope) return;
374 safeWriteJSON(
375 storageKeySqlEditorWorksheetTree(scope.wsScope, scope.project, scope.email),
376 [...keys]
377 );
378};
379
380const persistViewFolders = (view: SheetViewMode, folders: string[]) => {
381 const scope = currentScope();

Callers 1

bindWatchersFunction · 0.85

Calls 3

safeWriteJSONFunction · 0.85
currentScopeFunction · 0.70

Tested by

no test coverage detected