@vibeorm/adapter-pg 5.1.0 → 5.2.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.
@@ -17,6 +17,10 @@
17
17
  * (nothing to collide with); with one, the URL's value is EXTENDED in place
18
18
  * and a `plan_cache_mode` the URL already sets is left alone — the caller's
19
19
  * connection string is the more explicit statement of intent.
20
+ *
21
+ * node-postgres also falls back to `PGOPTIONS` for `options`, but only while
22
+ * `config.options` is unset — so `config.options` starts from `PGOPTIONS`, the
23
+ * libpq rule: a setting the adapter adds never drops the environment's.
20
24
  */
21
25
  /**
22
26
  * PostgreSQL plan-cache behaviour for named prepared statements
@@ -46,6 +50,8 @@ export type StartupOptionsPlacement = {
46
50
  export declare function placePlanCacheMode(params: {
47
51
  connectionString: string | undefined;
48
52
  planCacheMode: PlanCacheMode;
53
+ /** `PGOPTIONS`, which `config.options` would otherwise replace; the setting goes after it and wins. */
54
+ ambientOptions?: string;
49
55
  }): StartupOptionsPlacement;
50
56
  /**
51
57
  * Validate an `idleTimeout` option value (AW-04): integer milliseconds from
@@ -79,5 +85,7 @@ export declare function buildPoolConfig(params: {
79
85
  /** Milliseconds an idle pooled connection stays open (pg-pool's `idleTimeoutMillis`; `0` = never closed). Absent = pg-pool's 10 000. */
80
86
  idleTimeout?: number;
81
87
  planCacheMode?: PlanCacheMode;
88
+ /** `PGOPTIONS`, kept under an adapter-added `plan_cache_mode` (see {@link placePlanCacheMode}). */
89
+ ambientOptions?: string;
82
90
  }): Record<string, unknown>;
83
91
  //# sourceMappingURL=pool-config.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibeorm/adapter-pg",
3
- "version": "5.1.0",
3
+ "version": "5.2.1",
4
4
  "description": "node-postgres adapter for VibeORM v2 — Bun or Node.js",
5
5
  "keywords": [
6
6
  "orm",
@@ -45,8 +45,8 @@
45
45
  "bun": ">=1.2.0"
46
46
  },
47
47
  "dependencies": {
48
- "@vibeorm/runtime": "5.2.0",
49
- "@vibeorm/schema": "5.1.0"
48
+ "@vibeorm/runtime": "5.4.1",
49
+ "@vibeorm/schema": "5.3.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "pg": ">=8"