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

Function serializeSelect

packages/core/fumadb/src/convex/serialize.ts:57–63  ·  view source on GitHub ↗
(
  table: AnyTable,
  select: AnySelectClause
)

Source from the content-addressed store, hash-verified

55}
56
57export function serializeSelect(
58 table: AnyTable,
59 select: AnySelectClause
60): SerializedSelect {
61 if (select === true) return Object.keys(table.columns);
62 return select;
63}
64
65export function serializeWhere(where: Condition): SerializedWhere {
66 if (where.type === ConditionType.Compare) {

Callers 2

findFirstFunction · 0.90
findManyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected