@kipicore/dbcore 1.1.318 → 1.1.319

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.
@@ -5,4 +5,10 @@ export let password: string | undefined;
5
5
  export let database: string | undefined;
6
6
  export function dbLogging(message: any): void;
7
7
  export let dialect: string;
8
+ export namespace pool {
9
+ let max: number;
10
+ let min: number;
11
+ let acquire: number;
12
+ let idle: number;
13
+ }
8
14
  export let dialectOptions: {};
@@ -19,6 +19,12 @@ const postgresConfig = {
19
19
  }
20
20
  },
21
21
  dialect: 'postgres',
22
+ pool: {
23
+ max: 25,
24
+ min: 5,
25
+ acquire: 60000,
26
+ idle: 10000,
27
+ },
22
28
  dialectOptions: {},
23
29
  };
24
30
  if (['production'].includes(process.env.NODE_ENV)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.318",
3
+ "version": "1.1.319",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",