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

Function exists

packages/core/fumadb/src/query/polyfills/foreign-key.ts:82–89  ·  view source on GitHub ↗
(orm: ORMAdapter, table: AnyTable, where: Condition)

Source from the content-addressed store, hash-verified

80}
81
82async function exists(orm: ORMAdapter, table: AnyTable, where: Condition) {
83 const result = await orm.findFirst(table, {
84 select: [table.getIdColumn().ormName],
85 where,
86 });
87
88 return result !== null;
89}
90
91async function foreignKeyOnUpdate(
92 orm: ORMAdapter,

Callers 3

foreignKeyOnUpdateFunction · 0.85
deleteManyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected