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

Function runCreatePolicies

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

Source from the content-addressed store, hash-verified

201};
202
203const runCreatePolicies = async (
204 table: AnyTable,
205 values: Record<string, unknown>,
206 context: unknown,
207): Promise<void> => {
208 for (const policy of table.policies) {
209 await policy.onCreate?.({ values, context });
210 }
211};
212
213const applyUpdatePolicies = async (
214 table: AnyTable,

Callers 4

upsertFunction · 0.85
upsertManyFunction · 0.85
createFunction · 0.85
createManyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected