MCPcopy Index your code
hub / github.com/tinyplex/tinybase / canSelect

Function canSelect

src/persisters/common/database/commands.ts:87–88  ·  view source on GitHub ↗
(tableName: string, rowIdColumnName: string)

Source from the content-addressed store, hash-verified

85 const schemaMap: Schema = mapNew();
86
87 const canSelect = (tableName: string, rowIdColumnName: string): boolean =>
88 collHas(mapGet(schemaMap, tableName), rowIdColumnName);
89
90 const refreshSchema = async (): Promise<void> => {
91 collClear(schemaMap);

Callers 1

loadTableFunction · 0.85

Calls 2

collHasFunction · 0.90
mapGetFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…