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

Function readResultRowsLimit

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

Source from the content-addressed store, hash-verified

79 );
80
81const readResultRowsLimit = () =>
82 safeRead<number>(
83 STORAGE_KEY_SQL_EDITOR_RESULT_LIMIT,
84 (v) =>
85 typeof v === "number" && Number.isFinite(v) && v > 0 ? v : undefined,
86 DEFAULT_RESULT_ROWS_LIMIT
87 );
88
89const readRedisOption = () =>
90 safeRead<QueryOption_RedisRunCommandsOn>(

Callers 1

editor.tsFile · 0.85

Calls 1

safeReadFunction · 0.70

Tested by

no test coverage detected