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

Function table

packages/core/sdk/src/fuma-runtime.ts:338–341  ·  view source on GitHub ↗
(name: TableName)

Source from the content-addressed store, hash-verified

336 options: MakeFumaClientOptions,
337): FumaQuery<TSchema> => {
338 const table = <TableName extends keyof TSchema["tables"]>(name: TableName): TableName => {
339 assertAllowedTable(options.tables, name);
340 return name;
341 };
342
343 const query: FumaQuery<TSchema> = {
344 count: (name, value) => db.count(table(name), value),

Callers 1

makeSafeFumaQueryFunction · 0.70

Calls 1

assertAllowedTableFunction · 0.85

Tested by

no test coverage detected