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

Function getEvents

frontend/src/views/sql-editor/Sheet/context.ts:525–531  ·  view source on GitHub ↗
(view: SheetViewMode)

Source from the content-addressed store, hash-verified

523
524const viewEvents: Partial<Record<SheetViewMode, SheetTreeEvents>> = {};
525const getEvents = (view: SheetViewMode): SheetTreeEvents => {
526 const existed = viewEvents[view];
527 if (existed) return existed;
528 const events: SheetTreeEvents = new Emittery();
529 viewEvents[view] = events;
530 return events;
531};
532
533const getPathesForWorksheet = (
534 view: SheetViewMode,

Callers 2

rebuildTreeImplFunction · 0.70
buildViewContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected