@platformatic/db 3.38.1 → 3.40.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 +14 -0
- package/package.json +12 -12
- package/schema.json +87 -1
package/config.d.ts
CHANGED
|
@@ -96,6 +96,10 @@ export interface PlatformaticDatabaseConfig {
|
|
|
96
96
|
customLevels?: {
|
|
97
97
|
[k: string]: unknown;
|
|
98
98
|
};
|
|
99
|
+
openTelemetryExporter?: {
|
|
100
|
+
protocol: "grpc" | "http";
|
|
101
|
+
url: string;
|
|
102
|
+
};
|
|
99
103
|
[k: string]: unknown;
|
|
100
104
|
};
|
|
101
105
|
loggerInstance?: {
|
|
@@ -548,6 +552,10 @@ export interface PlatformaticDatabaseConfig {
|
|
|
548
552
|
customLevels?: {
|
|
549
553
|
[k: string]: unknown;
|
|
550
554
|
};
|
|
555
|
+
openTelemetryExporter?: {
|
|
556
|
+
protocol: "grpc" | "http";
|
|
557
|
+
url: string;
|
|
558
|
+
};
|
|
551
559
|
[k: string]: unknown;
|
|
552
560
|
};
|
|
553
561
|
server?: {
|
|
@@ -686,6 +694,12 @@ export interface PlatformaticDatabaseConfig {
|
|
|
686
694
|
*/
|
|
687
695
|
socket?: string;
|
|
688
696
|
};
|
|
697
|
+
management?:
|
|
698
|
+
| boolean
|
|
699
|
+
| {
|
|
700
|
+
enabled?: boolean;
|
|
701
|
+
operations?: string[];
|
|
702
|
+
};
|
|
689
703
|
metrics?:
|
|
690
704
|
| boolean
|
|
691
705
|
| {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/db",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.40.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/db-core": "3.
|
|
72
|
-
"@platformatic/foundation": "3.
|
|
73
|
-
"@platformatic/service": "3.
|
|
74
|
-
"@platformatic/sql-events": "3.
|
|
75
|
-
"@platformatic/sql-
|
|
76
|
-
"@platformatic/sql-
|
|
77
|
-
"@platformatic/sql-mapper": "3.
|
|
78
|
-
"@platformatic/sql-openapi": "3.
|
|
79
|
-
"@platformatic/telemetry": "3.
|
|
69
|
+
"@platformatic/basic": "3.40.0",
|
|
70
|
+
"@platformatic/db-authorization": "3.40.0",
|
|
71
|
+
"@platformatic/db-core": "3.40.0",
|
|
72
|
+
"@platformatic/foundation": "3.40.0",
|
|
73
|
+
"@platformatic/service": "3.40.0",
|
|
74
|
+
"@platformatic/sql-events": "3.40.0",
|
|
75
|
+
"@platformatic/sql-json-schema-mapper": "3.40.0",
|
|
76
|
+
"@platformatic/sql-graphql": "3.40.0",
|
|
77
|
+
"@platformatic/sql-mapper": "3.40.0",
|
|
78
|
+
"@platformatic/sql-openapi": "3.40.0",
|
|
79
|
+
"@platformatic/telemetry": "3.40.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.40.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Database Config",
|
|
5
5
|
"type": "object",
|
|
@@ -238,6 +238,26 @@
|
|
|
238
238
|
"customLevels": {
|
|
239
239
|
"type": "object",
|
|
240
240
|
"additionalProperties": true
|
|
241
|
+
},
|
|
242
|
+
"openTelemetryExporter": {
|
|
243
|
+
"type": "object",
|
|
244
|
+
"properties": {
|
|
245
|
+
"protocol": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"enum": [
|
|
248
|
+
"grpc",
|
|
249
|
+
"http"
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
"url": {
|
|
253
|
+
"type": "string"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"required": [
|
|
257
|
+
"protocol",
|
|
258
|
+
"url"
|
|
259
|
+
],
|
|
260
|
+
"additionalProperties": false
|
|
241
261
|
}
|
|
242
262
|
},
|
|
243
263
|
"default": {},
|
|
@@ -1651,6 +1671,29 @@
|
|
|
1651
1671
|
"additionalProperties": false
|
|
1652
1672
|
}
|
|
1653
1673
|
]
|
|
1674
|
+
},
|
|
1675
|
+
"management": {
|
|
1676
|
+
"anyOf": [
|
|
1677
|
+
{
|
|
1678
|
+
"type": "boolean"
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"type": "object",
|
|
1682
|
+
"properties": {
|
|
1683
|
+
"enabled": {
|
|
1684
|
+
"type": "boolean",
|
|
1685
|
+
"default": true
|
|
1686
|
+
},
|
|
1687
|
+
"operations": {
|
|
1688
|
+
"type": "array",
|
|
1689
|
+
"items": {
|
|
1690
|
+
"type": "string"
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1694
|
+
"additionalProperties": false
|
|
1695
|
+
}
|
|
1696
|
+
]
|
|
1654
1697
|
}
|
|
1655
1698
|
}
|
|
1656
1699
|
}
|
|
@@ -1870,6 +1913,26 @@
|
|
|
1870
1913
|
"customLevels": {
|
|
1871
1914
|
"type": "object",
|
|
1872
1915
|
"additionalProperties": true
|
|
1916
|
+
},
|
|
1917
|
+
"openTelemetryExporter": {
|
|
1918
|
+
"type": "object",
|
|
1919
|
+
"properties": {
|
|
1920
|
+
"protocol": {
|
|
1921
|
+
"type": "string",
|
|
1922
|
+
"enum": [
|
|
1923
|
+
"grpc",
|
|
1924
|
+
"http"
|
|
1925
|
+
]
|
|
1926
|
+
},
|
|
1927
|
+
"url": {
|
|
1928
|
+
"type": "string"
|
|
1929
|
+
}
|
|
1930
|
+
},
|
|
1931
|
+
"required": [
|
|
1932
|
+
"protocol",
|
|
1933
|
+
"url"
|
|
1934
|
+
],
|
|
1935
|
+
"additionalProperties": false
|
|
1873
1936
|
}
|
|
1874
1937
|
},
|
|
1875
1938
|
"default": {},
|
|
@@ -2370,6 +2433,29 @@
|
|
|
2370
2433
|
],
|
|
2371
2434
|
"default": true
|
|
2372
2435
|
},
|
|
2436
|
+
"management": {
|
|
2437
|
+
"anyOf": [
|
|
2438
|
+
{
|
|
2439
|
+
"type": "boolean"
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
"type": "object",
|
|
2443
|
+
"properties": {
|
|
2444
|
+
"enabled": {
|
|
2445
|
+
"type": "boolean",
|
|
2446
|
+
"default": true
|
|
2447
|
+
},
|
|
2448
|
+
"operations": {
|
|
2449
|
+
"type": "array",
|
|
2450
|
+
"items": {
|
|
2451
|
+
"type": "string"
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2455
|
+
"additionalProperties": false
|
|
2456
|
+
}
|
|
2457
|
+
]
|
|
2458
|
+
},
|
|
2373
2459
|
"metrics": {
|
|
2374
2460
|
"anyOf": [
|
|
2375
2461
|
{
|