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

Class DbService

apps/cloud/src/db/db.ts:120–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118};
119
120export class DbService extends Context.Service<DbService, DbServiceShape>()(
121 "@executor-js/cloud/DbService",
122) {
123 static Live = Layer.effect(this)(
124 Effect.acquireRelease(Effect.sync(makePostgresResource), (resource) => resource.close()),
125 );
126}
127
128/**
129 * A FRESH `DbService` layer (a new layer value on every call). Provide this

Callers

nothing calls this directly

Calls 2

syncMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected