MCPcopy Index your code
hub / github.com/bytebase/bytebase / readRedisOption

Function readRedisOption

frontend/src/react/stores/sqlEditor/editor.ts:89–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 );
88
89const readRedisOption = () =>
90 safeRead<QueryOption_RedisRunCommandsOn>(
91 STORAGE_KEY_SQL_EDITOR_REDIS_NODE,
92 (v) =>
93 v === QueryOption_RedisRunCommandsOn.SINGLE_NODE ||
94 v === QueryOption_RedisRunCommandsOn.ALL_NODES
95 ? v
96 : undefined,
97 QueryOption_RedisRunCommandsOn.SINGLE_NODE
98 );
99
100export const useSQLEditorEditorStore: UseBoundStore<
101 StoreApi<SQLEditorEditorState>

Callers 1

editor.tsFile · 0.85

Calls 1

safeReadFunction · 0.70

Tested by

no test coverage detected