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

Function table

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

Source from the content-addressed store, hash-verified

325 options: MakeFumaClientOptions,
326): FumaQuery<TSchema> => {
327 const table = <TableName extends keyof TSchema["tables"]>(name: TableName): TableName => {
328 assertAllowedTable(options.tables, name);
329 return name;
330 };
331
332 const query: FumaQuery<TSchema> = {
333 count: (name, value) => db.count(table(name), value),

Callers 1

makeSafeFumaQueryFunction · 0.70

Calls 1

assertAllowedTableFunction · 0.85

Tested by

no test coverage detected