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

Function program

apps/cloud/src/db/org-deletion.test.ts:45–48  ·  view source on GitHub ↗
(body: Effect.Effect<A, E, DbService>)

Source from the content-addressed store, hash-verified

43} from "./executor-schema";
44
45const program = <A, E>(body: Effect.Effect<A, E, DbService>) =>
46 Effect.runPromise(
47 body.pipe(Effect.provide(DbService.Live), Effect.scoped) as Effect.Effect<A, E, never>,
48 );
49
50// Insert one row into every tenant table, plus an org- and a user-scoped blob,
51// all owned by `tenant`. `tag` keeps unique indexes from colliding across orgs.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected