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

Function table

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

Source from the content-addressed store, hash-verified

128 options: MakeFumaClientOptions,
129): FumaQuery<TSchema> => {
130 const table = <TableName extends keyof TSchema["tables"]>(name: TableName): TableName => {
131 assertAllowedTable(options.tables, name);
132 return name;
133 };
134
135 const query: FumaQuery<TSchema> = {
136 count: (name, value) => db.count(table(name), value),

Callers 1

makeSafeFumaQueryFunction · 0.70

Calls 1

assertAllowedTableFunction · 0.85

Tested by

no test coverage detected