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

Function toTable

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

Source from the content-addressed store, hash-verified

326 context === adapter.context ? adapter : { ...adapter, context };
327
328 function toTable<TableName extends keyof S["tables"]>(
329 name: TableName,
330 ): S["tables"][TableName] {
331 const table = internal.tables[name];
332 if (!table) throw new Error(`[FumaDB] Invalid table name ${String(name)}.`);
333
334 return table;
335 }
336
337 const query = {
338 internal,

Callers 8

countFunction · 0.85
upsertFunction · 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