@platformatic/db 3.9.0 → 3.11.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 +4 -1
- package/package.json +12 -12
- package/schema.json +47 -5
package/config.d.ts
CHANGED
|
@@ -690,6 +690,7 @@ export interface PlatformaticDatabaseConfig {
|
|
|
690
690
|
};
|
|
691
691
|
};
|
|
692
692
|
plugins?: string[];
|
|
693
|
+
timeout?: number | string;
|
|
693
694
|
};
|
|
694
695
|
telemetry?: {
|
|
695
696
|
enabled?: boolean | string;
|
|
@@ -770,14 +771,16 @@ export interface PlatformaticDatabaseConfig {
|
|
|
770
771
|
verticalScaler?: {
|
|
771
772
|
enabled?: boolean;
|
|
772
773
|
maxTotalWorkers?: number;
|
|
774
|
+
maxTotalMemory?: number;
|
|
773
775
|
minWorkers?: number;
|
|
774
776
|
maxWorkers?: number;
|
|
775
777
|
scaleUpELU?: number;
|
|
776
778
|
scaleDownELU?: number;
|
|
777
|
-
minELUDiff?: number;
|
|
778
779
|
timeWindowSec?: number;
|
|
780
|
+
scaleDownTimeWindowSec?: number;
|
|
779
781
|
cooldownSec?: number;
|
|
780
782
|
scaleIntervalSec?: number;
|
|
783
|
+
gracePeriod?: number;
|
|
781
784
|
};
|
|
782
785
|
inspectorOptions?: {
|
|
783
786
|
host?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/db",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.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-authorization": "3.
|
|
71
|
-
"@platformatic/
|
|
72
|
-
"@platformatic/
|
|
73
|
-
"@platformatic/
|
|
74
|
-
"@platformatic/sql-graphql": "3.
|
|
75
|
-
"@platformatic/sql-
|
|
76
|
-
"@platformatic/
|
|
77
|
-
"@platformatic/sql-mapper": "3.
|
|
78
|
-
"@platformatic/
|
|
79
|
-
"@platformatic/
|
|
69
|
+
"@platformatic/basic": "3.11.0",
|
|
70
|
+
"@platformatic/db-authorization": "3.11.0",
|
|
71
|
+
"@platformatic/foundation": "3.11.0",
|
|
72
|
+
"@platformatic/db-core": "3.11.0",
|
|
73
|
+
"@platformatic/service": "3.11.0",
|
|
74
|
+
"@platformatic/sql-graphql": "3.11.0",
|
|
75
|
+
"@platformatic/sql-events": "3.11.0",
|
|
76
|
+
"@platformatic/sql-json-schema-mapper": "3.11.0",
|
|
77
|
+
"@platformatic/sql-mapper": "3.11.0",
|
|
78
|
+
"@platformatic/telemetry": "3.11.0",
|
|
79
|
+
"@platformatic/sql-openapi": "3.11.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.11.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Database Config",
|
|
5
5
|
"type": "object",
|
|
@@ -1524,6 +1524,30 @@
|
|
|
1524
1524
|
"nodeOptions": {
|
|
1525
1525
|
"type": "string"
|
|
1526
1526
|
},
|
|
1527
|
+
"permissions": {
|
|
1528
|
+
"type": "object",
|
|
1529
|
+
"properties": {
|
|
1530
|
+
"fs": {
|
|
1531
|
+
"type": "object",
|
|
1532
|
+
"properties": {
|
|
1533
|
+
"read": {
|
|
1534
|
+
"type": "array",
|
|
1535
|
+
"items": {
|
|
1536
|
+
"type": "string"
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1539
|
+
"write": {
|
|
1540
|
+
"type": "array",
|
|
1541
|
+
"items": {
|
|
1542
|
+
"type": "string"
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
},
|
|
1546
|
+
"additionalProperties": false
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
"additionalProperties": false
|
|
1550
|
+
},
|
|
1527
1551
|
"telemetry": {
|
|
1528
1552
|
"type": "object",
|
|
1529
1553
|
"properties": {
|
|
@@ -2334,6 +2358,17 @@
|
|
|
2334
2358
|
}
|
|
2335
2359
|
]
|
|
2336
2360
|
}
|
|
2361
|
+
},
|
|
2362
|
+
"timeout": {
|
|
2363
|
+
"anyOf": [
|
|
2364
|
+
{
|
|
2365
|
+
"type": "integer"
|
|
2366
|
+
},
|
|
2367
|
+
{
|
|
2368
|
+
"type": "string"
|
|
2369
|
+
}
|
|
2370
|
+
],
|
|
2371
|
+
"default": 10000
|
|
2337
2372
|
}
|
|
2338
2373
|
},
|
|
2339
2374
|
"additionalProperties": false
|
|
@@ -2481,6 +2516,10 @@
|
|
|
2481
2516
|
"type": "number",
|
|
2482
2517
|
"minimum": 1
|
|
2483
2518
|
},
|
|
2519
|
+
"maxTotalMemory": {
|
|
2520
|
+
"type": "number",
|
|
2521
|
+
"minimum": 0
|
|
2522
|
+
},
|
|
2484
2523
|
"minWorkers": {
|
|
2485
2524
|
"type": "number",
|
|
2486
2525
|
"minimum": 1
|
|
@@ -2499,12 +2538,11 @@
|
|
|
2499
2538
|
"minimum": 0,
|
|
2500
2539
|
"maximum": 1
|
|
2501
2540
|
},
|
|
2502
|
-
"
|
|
2541
|
+
"timeWindowSec": {
|
|
2503
2542
|
"type": "number",
|
|
2504
|
-
"minimum": 0
|
|
2505
|
-
"maximum": 1
|
|
2543
|
+
"minimum": 0
|
|
2506
2544
|
},
|
|
2507
|
-
"
|
|
2545
|
+
"scaleDownTimeWindowSec": {
|
|
2508
2546
|
"type": "number",
|
|
2509
2547
|
"minimum": 0
|
|
2510
2548
|
},
|
|
@@ -2515,6 +2553,10 @@
|
|
|
2515
2553
|
"scaleIntervalSec": {
|
|
2516
2554
|
"type": "number",
|
|
2517
2555
|
"minimum": 0
|
|
2556
|
+
},
|
|
2557
|
+
"gracePeriod": {
|
|
2558
|
+
"type": "number",
|
|
2559
|
+
"minimum": 0
|
|
2518
2560
|
}
|
|
2519
2561
|
},
|
|
2520
2562
|
"additionalProperties": false
|