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

Function makePostgresResource

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

Source from the content-addressed store, hash-verified

109 );
110
111const makePostgresResource = (): DbResource => {
112 const sql = makeSql();
113 return {
114 sql,
115 db: drizzle(sql, { schema: combinedSchema }) as DrizzleDb,
116 close: () => closePostgres(sql),
117 };
118};
119
120export class DbService extends Context.Service<DbService, DbServiceShape>()(
121 "@executor-js/cloud/DbService",

Callers

nothing calls this directly

Calls 2

closePostgresFunction · 0.85
makeSqlFunction · 0.70

Tested by

no test coverage detected