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

Function makeDbLayer

apps/cloud/src/db/db.ts:138–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 * released within that request.
137 */
138export const makeDbLayer = (): Layer.Layer<DbService> =>
139 Layer.effect(DbService)(
140 Effect.acquireRelease(Effect.sync(makePostgresResource), (resource) => resource.close()),
141 );

Callers 2

organizationDisplayFunction · 0.90

Calls 2

syncMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected