@platformatic/db 3.10.0 → 3.12.0
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/config.d.ts +11 -1
- package/package.json +12 -12
- package/schema.json +36 -5
package/config.d.ts
CHANGED
|
@@ -771,12 +771,13 @@ export interface PlatformaticDatabaseConfig {
|
|
|
771
771
|
verticalScaler?: {
|
|
772
772
|
enabled?: boolean;
|
|
773
773
|
maxTotalWorkers?: number;
|
|
774
|
+
maxTotalMemory?: number;
|
|
774
775
|
minWorkers?: number;
|
|
775
776
|
maxWorkers?: number;
|
|
776
777
|
scaleUpELU?: number;
|
|
777
778
|
scaleDownELU?: number;
|
|
778
|
-
minELUDiff?: number;
|
|
779
779
|
timeWindowSec?: number;
|
|
780
|
+
scaleDownTimeWindowSec?: number;
|
|
780
781
|
cooldownSec?: number;
|
|
781
782
|
scaleIntervalSec?: number;
|
|
782
783
|
gracePeriod?: number;
|
|
@@ -811,6 +812,15 @@ export interface PlatformaticDatabaseConfig {
|
|
|
811
812
|
maxRetries?: number;
|
|
812
813
|
[k: string]: unknown;
|
|
813
814
|
}[];
|
|
815
|
+
policies?: {
|
|
816
|
+
deny: {
|
|
817
|
+
/**
|
|
818
|
+
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
819
|
+
* via the `patternProperty` "^.*$".
|
|
820
|
+
*/
|
|
821
|
+
[k: string]: string | [string, ...string[]];
|
|
822
|
+
};
|
|
823
|
+
};
|
|
814
824
|
};
|
|
815
825
|
watch?:
|
|
816
826
|
| {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/db",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -66,17 +66,17 @@
|
|
|
66
66
|
"rfdc": "^1.3.1",
|
|
67
67
|
"rimraf": "^4.4.1",
|
|
68
68
|
"semgrator": "^0.3.0",
|
|
69
|
-
"@platformatic/basic": "3.
|
|
70
|
-
"@platformatic/db-
|
|
71
|
-
"@platformatic/db-
|
|
72
|
-
"@platformatic/service": "3.
|
|
73
|
-
"@platformatic/sql-events": "3.
|
|
74
|
-
"@platformatic/sql-
|
|
75
|
-
"@platformatic/
|
|
76
|
-
"@platformatic/sql-mapper": "3.
|
|
77
|
-
"@platformatic/sql-
|
|
78
|
-
"@platformatic/
|
|
79
|
-
"@platformatic/
|
|
69
|
+
"@platformatic/basic": "3.12.0",
|
|
70
|
+
"@platformatic/db-authorization": "3.12.0",
|
|
71
|
+
"@platformatic/db-core": "3.12.0",
|
|
72
|
+
"@platformatic/service": "3.12.0",
|
|
73
|
+
"@platformatic/sql-events": "3.12.0",
|
|
74
|
+
"@platformatic/sql-graphql": "3.12.0",
|
|
75
|
+
"@platformatic/sql-json-schema-mapper": "3.12.0",
|
|
76
|
+
"@platformatic/sql-mapper": "3.12.0",
|
|
77
|
+
"@platformatic/sql-openapi": "3.12.0",
|
|
78
|
+
"@platformatic/foundation": "3.12.0",
|
|
79
|
+
"@platformatic/telemetry": "3.12.0"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/db/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/db/3.12.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Database Config",
|
|
5
5
|
"type": "object",
|
|
@@ -2516,6 +2516,10 @@
|
|
|
2516
2516
|
"type": "number",
|
|
2517
2517
|
"minimum": 1
|
|
2518
2518
|
},
|
|
2519
|
+
"maxTotalMemory": {
|
|
2520
|
+
"type": "number",
|
|
2521
|
+
"minimum": 0
|
|
2522
|
+
},
|
|
2519
2523
|
"minWorkers": {
|
|
2520
2524
|
"type": "number",
|
|
2521
2525
|
"minimum": 1
|
|
@@ -2534,12 +2538,11 @@
|
|
|
2534
2538
|
"minimum": 0,
|
|
2535
2539
|
"maximum": 1
|
|
2536
2540
|
},
|
|
2537
|
-
"
|
|
2541
|
+
"timeWindowSec": {
|
|
2538
2542
|
"type": "number",
|
|
2539
|
-
"minimum": 0
|
|
2540
|
-
"maximum": 1
|
|
2543
|
+
"minimum": 0
|
|
2541
2544
|
},
|
|
2542
|
-
"
|
|
2545
|
+
"scaleDownTimeWindowSec": {
|
|
2543
2546
|
"type": "number",
|
|
2544
2547
|
"minimum": 0
|
|
2545
2548
|
},
|
|
@@ -2674,6 +2677,34 @@
|
|
|
2674
2677
|
"callbackUrl"
|
|
2675
2678
|
]
|
|
2676
2679
|
}
|
|
2680
|
+
},
|
|
2681
|
+
"policies": {
|
|
2682
|
+
"type": "object",
|
|
2683
|
+
"properties": {
|
|
2684
|
+
"deny": {
|
|
2685
|
+
"type": "object",
|
|
2686
|
+
"patternProperties": {
|
|
2687
|
+
"^.*$": {
|
|
2688
|
+
"oneOf": [
|
|
2689
|
+
{
|
|
2690
|
+
"type": "string"
|
|
2691
|
+
},
|
|
2692
|
+
{
|
|
2693
|
+
"type": "array",
|
|
2694
|
+
"items": {
|
|
2695
|
+
"type": "string"
|
|
2696
|
+
},
|
|
2697
|
+
"minItems": 1
|
|
2698
|
+
}
|
|
2699
|
+
]
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
},
|
|
2704
|
+
"required": [
|
|
2705
|
+
"deny"
|
|
2706
|
+
],
|
|
2707
|
+
"additionalProperties": false
|
|
2677
2708
|
}
|
|
2678
2709
|
},
|
|
2679
2710
|
"additionalProperties": false
|