MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isAllowedTable

Function isAllowedTable

packages/core/sdk/src/fuma-runtime.ts:114–115  ·  view source on GitHub ↗
(tables: ReadonlySet<string> | undefined, table: PropertyKey)

Source from the content-addressed store, hash-verified

112}
113
114const isAllowedTable = (tables: ReadonlySet<string> | undefined, table: PropertyKey): boolean =>
115 tables === undefined || (typeof table === "string" && tables.has(table));
116
117const assertAllowedTable = (tables: ReadonlySet<string> | undefined, table: PropertyKey): void => {
118 if (isAllowedTable(tables, table)) return;

Callers 1

assertAllowedTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected