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

Function toTable

packages/core/fumadb/src/query/orm/index.ts:406–413  ·  view source on GitHub ↗
(
    name: TableName,
  )

Source from the content-addressed store, hash-verified

404 context === adapter.context ? adapter : { ...adapter, context };
405
406 function toTable<TableName extends keyof S["tables"]>(
407 name: TableName,
408 ): S["tables"][TableName] {
409 const table = internal.tables[name];
410 if (!table) throw new Error(`[FumaDB] Invalid table name ${String(name)}.`);
411
412 return table;
413 }
414
415 const query = {
416 internal,

Callers 9

countFunction · 0.85
upsertFunction · 0.85
upsertManyFunction · 0.85
createFunction · 0.85
createManyFunction · 0.85
deleteManyFunction · 0.85
findManyFunction · 0.85
findFirstFunction · 0.85
updateManyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected