@mastra/pg 1.17.1 → 1.18.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/storage/factory-storage.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -20532,6 +20532,11 @@ var PgFactoryStorage = class extends FactoryStorage {
|
|
|
20532
20532
|
} else {
|
|
20533
20533
|
this.#pool = new pg__default.Pool({ connectionString: config.connectionString });
|
|
20534
20534
|
this.#ownsPool = true;
|
|
20535
|
+
this.#pool.on("error", (err) => {
|
|
20536
|
+
console.warn(
|
|
20537
|
+
`PgFactoryStorage: idle pool client error (pool discards the client and reconnects on next checkout): ${err instanceof Error ? err.message : String(err)}`
|
|
20538
|
+
);
|
|
20539
|
+
});
|
|
20535
20540
|
}
|
|
20536
20541
|
this.ops = new PgFactoryStorageOps(this.#pool, this.#schemas);
|
|
20537
20542
|
}
|