feat: expose core identity transport
CI / verify (pull_request) Successful in 27s
CI / infrastructure-smoke (pull_request) Successful in 19s
CI / migration-smoke (pull_request) Successful in 26s

This commit is contained in:
ekklesia
2026-07-21 19:15:14 -05:00
parent 82fe338a8d
commit 91d8f5946f
33 changed files with 2672 additions and 224 deletions
+6
View File
@@ -60,6 +60,12 @@ export function createIdentityDrizzleDatabase(
}
const pool = new Pool(poolConfig);
// pg's own documentation requires an error listener on the pool: an idle client can be
// terminated by the server (for example, its backend is killed, or the network drops) after
// being returned to the pool, and the pool surfaces that as an 'error' event on itself rather
// than on any in-flight query. Without a listener, that event is an unhandled Node.js error and
// can crash the process even though no caller is doing anything wrong at the time.
pool.on("error", () => undefined);
const db = drizzle(pool, { schema: identityAdapterSchema });
return Object.freeze({