@ts-cloud/core 0.16.115 → 0.16.117

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +22 -3
  2. package/package.json +2 -2
package/dist/types.d.ts CHANGED
@@ -4063,6 +4063,27 @@ export interface VitessServiceConfig {
4063
4063
  */
4064
4064
  mysqlPort?: number;
4065
4065
  }
4066
+ /**
4067
+ * The box's own PostgreSQL engine.
4068
+ *
4069
+ * `settings` are server parameters, written with `ALTER SYSTEM` and reloaded
4070
+ * on every deploy that sets up the app database, so the engine converges on
4071
+ * what the config says rather than on whatever someone last typed into psql.
4072
+ *
4073
+ * `idle_session_timeout` is the one most boxes want. Every co-located process
4074
+ * holds a pool, pools idle rather than close, and a release that never shut
4075
+ * its connections fills `max_connections` until the next deploy cannot get a
4076
+ * slot to migrate. Setting it also ends sessions that have already idled past
4077
+ * it, so the deploy that sets it is not itself the one left without a slot.
4078
+ *
4079
+ * Parameters that only take effect on a restart (`max_connections`,
4080
+ * `shared_buffers`, ...) are written but not applied: the deploy says which are
4081
+ * pending rather than restarting the database under the running release.
4082
+ */
4083
+ export interface PostgresServiceConfig {
4084
+ version?: string;
4085
+ settings?: Record<string, string | number | boolean>;
4086
+ }
4066
4087
  export interface TypesenseServiceConfig {
4067
4088
  /** Official Pantry package release. Defaults to 30.2. */
4068
4089
  version?: string;
@@ -4094,9 +4115,7 @@ export interface ComputeServicesConfig {
4094
4115
  mariadb?: boolean | {
4095
4116
  version?: string;
4096
4117
  };
4097
- postgres?: boolean | {
4098
- version?: string;
4099
- };
4118
+ postgres?: boolean | PostgresServiceConfig;
4100
4119
  redis?: boolean | {
4101
4120
  version?: string;
4102
4121
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ts-cloud/core",
3
3
  "type": "module",
4
- "version": "0.16.115",
4
+ "version": "0.16.117",
5
5
  "description": "Core CloudFormation generation library for ts-cloud",
6
6
  "author": "Chris Breuer <chris@stacksjs.com>",
7
7
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "typecheck": "tsc --noEmit"
32
32
  },
33
33
  "dependencies": {
34
- "@ts-cloud/aws-types": "0.16.115"
34
+ "@ts-cloud/aws-types": "0.16.117"
35
35
  },
36
36
  "devDependencies": {
37
37
  "typescript": "^7.0.2"