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

Function runCreatePolicies

packages/core/fumadb/src/query/orm/index.ts:197–205  ·  view source on GitHub ↗
(
  table: AnyTable,
  values: Record<string, unknown>,
  context: unknown,
)

Source from the content-addressed store, hash-verified

195};
196
197const runCreatePolicies = async (
198 table: AnyTable,
199 values: Record<string, unknown>,
200 context: unknown,
201): Promise<void> => {
202 for (const policy of table.policies) {
203 await policy.onCreate?.({ values, context });
204 }
205};
206
207const applyUpdatePolicies = async (
208 table: AnyTable,

Callers 3

upsertFunction · 0.85
createFunction · 0.85
createManyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected