@effect/sql-pg 4.0.0 → 4.0.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/dist/PgPool.d.ts +1 -1
- package/dist/PgPool.js +1 -1
- package/package.json +3 -3
- package/src/PgPool.ts +2 -2
package/dist/PgPool.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export type TypeId = "~@effect/sql-pg/PgPool";
|
|
|
23
23
|
*
|
|
24
24
|
* **Details**
|
|
25
25
|
*
|
|
26
|
-
* The defaults are 0 to 10 connections and a
|
|
26
|
+
* The defaults are 0 to 10 connections and a 60-second idle timeout.
|
|
27
27
|
* `connectionTTL` replaces connections that exceed the configured lifetime.
|
|
28
28
|
* Every connection is used at least once, so a TTL of zero disables reuse.
|
|
29
29
|
*
|
package/dist/PgPool.js
CHANGED
|
@@ -68,7 +68,7 @@ export const make = /*#__PURE__*/Effect.fnUntraced(function* (options) {
|
|
|
68
68
|
min: options.minConnections ?? 0,
|
|
69
69
|
max: maxConnections,
|
|
70
70
|
concurrency: multiplex ? Math.max(1, options.multiplexConcurrency ?? defaultMultiplexConcurrency) : 1,
|
|
71
|
-
timeToLive: options.idleTimeout ?? Duration.seconds(
|
|
71
|
+
timeToLive: options.idleTimeout ?? Duration.seconds(60),
|
|
72
72
|
timeToLiveStrategy: "usage"
|
|
73
73
|
});
|
|
74
74
|
const expired = connection => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/sql-pg",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A PostgreSQL toolkit for Effect",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"@types/node": "^26.6.3",
|
|
52
52
|
"postgres": "^3.4.9",
|
|
53
53
|
"tinybench": "^6.2.0",
|
|
54
|
-
"effect": "^4.0.
|
|
54
|
+
"effect": "^4.0.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"effect": "^4.0.
|
|
57
|
+
"effect": "^4.0.1"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"benchmark:client": "node benchmark/PgClient.ts",
|
package/src/PgPool.ts
CHANGED
|
@@ -36,7 +36,7 @@ export type TypeId = "~@effect/sql-pg/PgPool"
|
|
|
36
36
|
*
|
|
37
37
|
* **Details**
|
|
38
38
|
*
|
|
39
|
-
* The defaults are 0 to 10 connections and a
|
|
39
|
+
* The defaults are 0 to 10 connections and a 60-second idle timeout.
|
|
40
40
|
* `connectionTTL` replaces connections that exceed the configured lifetime.
|
|
41
41
|
* Every connection is used at least once, so a TTL of zero disables reuse.
|
|
42
42
|
*
|
|
@@ -160,7 +160,7 @@ export const make = Effect.fnUntraced(function*(options: Config): Effect.fn.Retu
|
|
|
160
160
|
concurrency: multiplex
|
|
161
161
|
? Math.max(1, options.multiplexConcurrency ?? defaultMultiplexConcurrency)
|
|
162
162
|
: 1,
|
|
163
|
-
timeToLive: options.idleTimeout ?? Duration.seconds(
|
|
163
|
+
timeToLive: options.idleTimeout ?? Duration.seconds(60),
|
|
164
164
|
timeToLiveStrategy: "usage"
|
|
165
165
|
})
|
|
166
166
|
|