@platformatic/db 3.25.0 → 3.27.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 +56 -0
- package/package.json +12 -12
- package/schema.json +259 -1
package/config.d.ts
CHANGED
|
@@ -887,6 +887,62 @@ export interface PlatformaticDatabaseConfig {
|
|
|
887
887
|
[k: string]: string | [string, ...string[]];
|
|
888
888
|
};
|
|
889
889
|
};
|
|
890
|
+
application?: {
|
|
891
|
+
reuseTcpPorts?: boolean;
|
|
892
|
+
workers?:
|
|
893
|
+
| number
|
|
894
|
+
| string
|
|
895
|
+
| {
|
|
896
|
+
static?: number;
|
|
897
|
+
minimum?: number;
|
|
898
|
+
maximum?: number;
|
|
899
|
+
[k: string]: unknown;
|
|
900
|
+
};
|
|
901
|
+
health?: {
|
|
902
|
+
enabled?: boolean | string;
|
|
903
|
+
interval?: number | string;
|
|
904
|
+
gracePeriod?: number | string;
|
|
905
|
+
maxUnhealthyChecks?: number | string;
|
|
906
|
+
maxELU?: number | string;
|
|
907
|
+
maxHeapUsed?: number | string;
|
|
908
|
+
maxHeapTotal?: number | string;
|
|
909
|
+
maxYoungGeneration?: number | string;
|
|
910
|
+
codeRangeSize?: number | string;
|
|
911
|
+
};
|
|
912
|
+
arguments?: string[];
|
|
913
|
+
env?: {
|
|
914
|
+
[k: string]: string;
|
|
915
|
+
};
|
|
916
|
+
envfile?: string;
|
|
917
|
+
sourceMaps?: boolean;
|
|
918
|
+
packageManager?: "npm" | "pnpm" | "yarn";
|
|
919
|
+
preload?: string | string[];
|
|
920
|
+
nodeOptions?: string;
|
|
921
|
+
execArgv?: string[];
|
|
922
|
+
permissions?: {
|
|
923
|
+
fs?: {
|
|
924
|
+
read?: string[];
|
|
925
|
+
write?: string[];
|
|
926
|
+
};
|
|
927
|
+
};
|
|
928
|
+
telemetry?: {
|
|
929
|
+
/**
|
|
930
|
+
* An array of instrumentations loaded if telemetry is enabled
|
|
931
|
+
*/
|
|
932
|
+
instrumentations?: (
|
|
933
|
+
| string
|
|
934
|
+
| {
|
|
935
|
+
package: string;
|
|
936
|
+
exportName?: string;
|
|
937
|
+
options?: {
|
|
938
|
+
[k: string]: unknown;
|
|
939
|
+
};
|
|
940
|
+
[k: string]: unknown;
|
|
941
|
+
}
|
|
942
|
+
)[];
|
|
943
|
+
[k: string]: unknown;
|
|
944
|
+
};
|
|
945
|
+
};
|
|
890
946
|
};
|
|
891
947
|
watch?:
|
|
892
948
|
| {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/db",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.27.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-
|
|
75
|
-
"@platformatic/sql-
|
|
76
|
-
"@platformatic/sql-json-schema-mapper": "3.
|
|
77
|
-
"@platformatic/sql-openapi": "3.
|
|
78
|
-
"@platformatic/sql-mapper": "3.
|
|
79
|
-
"@platformatic/telemetry": "3.
|
|
69
|
+
"@platformatic/basic": "3.27.0",
|
|
70
|
+
"@platformatic/db-authorization": "3.27.0",
|
|
71
|
+
"@platformatic/db-core": "3.27.0",
|
|
72
|
+
"@platformatic/foundation": "3.27.0",
|
|
73
|
+
"@platformatic/service": "3.27.0",
|
|
74
|
+
"@platformatic/sql-events": "3.27.0",
|
|
75
|
+
"@platformatic/sql-graphql": "3.27.0",
|
|
76
|
+
"@platformatic/sql-json-schema-mapper": "3.27.0",
|
|
77
|
+
"@platformatic/sql-openapi": "3.27.0",
|
|
78
|
+
"@platformatic/sql-mapper": "3.27.0",
|
|
79
|
+
"@platformatic/telemetry": "3.27.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.27.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Database Config",
|
|
5
5
|
"type": "object",
|
|
@@ -1554,6 +1554,12 @@
|
|
|
1554
1554
|
"nodeOptions": {
|
|
1555
1555
|
"type": "string"
|
|
1556
1556
|
},
|
|
1557
|
+
"execArgv": {
|
|
1558
|
+
"type": "array",
|
|
1559
|
+
"items": {
|
|
1560
|
+
"type": "string"
|
|
1561
|
+
}
|
|
1562
|
+
},
|
|
1557
1563
|
"permissions": {
|
|
1558
1564
|
"type": "object",
|
|
1559
1565
|
"properties": {
|
|
@@ -2861,6 +2867,258 @@
|
|
|
2861
2867
|
"deny"
|
|
2862
2868
|
],
|
|
2863
2869
|
"additionalProperties": false
|
|
2870
|
+
},
|
|
2871
|
+
"application": {
|
|
2872
|
+
"type": "object",
|
|
2873
|
+
"properties": {
|
|
2874
|
+
"reuseTcpPorts": {
|
|
2875
|
+
"type": "boolean",
|
|
2876
|
+
"default": true
|
|
2877
|
+
},
|
|
2878
|
+
"workers": {
|
|
2879
|
+
"anyOf": [
|
|
2880
|
+
{
|
|
2881
|
+
"type": "number"
|
|
2882
|
+
},
|
|
2883
|
+
{
|
|
2884
|
+
"type": "string"
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
"type": "object",
|
|
2888
|
+
"properties": {
|
|
2889
|
+
"static": {
|
|
2890
|
+
"type": "number",
|
|
2891
|
+
"minimum": 1
|
|
2892
|
+
},
|
|
2893
|
+
"minimum": {
|
|
2894
|
+
"type": "number",
|
|
2895
|
+
"minimum": 1
|
|
2896
|
+
},
|
|
2897
|
+
"maximum": {
|
|
2898
|
+
"type": "number",
|
|
2899
|
+
"minimum": 0
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
]
|
|
2904
|
+
},
|
|
2905
|
+
"health": {
|
|
2906
|
+
"type": "object",
|
|
2907
|
+
"default": {},
|
|
2908
|
+
"properties": {
|
|
2909
|
+
"enabled": {
|
|
2910
|
+
"anyOf": [
|
|
2911
|
+
{
|
|
2912
|
+
"type": "boolean"
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
"type": "string"
|
|
2916
|
+
}
|
|
2917
|
+
]
|
|
2918
|
+
},
|
|
2919
|
+
"interval": {
|
|
2920
|
+
"anyOf": [
|
|
2921
|
+
{
|
|
2922
|
+
"type": "number",
|
|
2923
|
+
"minimum": 0
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
"type": "string"
|
|
2927
|
+
}
|
|
2928
|
+
]
|
|
2929
|
+
},
|
|
2930
|
+
"gracePeriod": {
|
|
2931
|
+
"anyOf": [
|
|
2932
|
+
{
|
|
2933
|
+
"type": "number",
|
|
2934
|
+
"minimum": 0
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
"type": "string"
|
|
2938
|
+
}
|
|
2939
|
+
]
|
|
2940
|
+
},
|
|
2941
|
+
"maxUnhealthyChecks": {
|
|
2942
|
+
"anyOf": [
|
|
2943
|
+
{
|
|
2944
|
+
"type": "number",
|
|
2945
|
+
"minimum": 1
|
|
2946
|
+
},
|
|
2947
|
+
{
|
|
2948
|
+
"type": "string"
|
|
2949
|
+
}
|
|
2950
|
+
]
|
|
2951
|
+
},
|
|
2952
|
+
"maxELU": {
|
|
2953
|
+
"anyOf": [
|
|
2954
|
+
{
|
|
2955
|
+
"type": "number",
|
|
2956
|
+
"minimum": 0,
|
|
2957
|
+
"maximum": 1
|
|
2958
|
+
},
|
|
2959
|
+
{
|
|
2960
|
+
"type": "string"
|
|
2961
|
+
}
|
|
2962
|
+
]
|
|
2963
|
+
},
|
|
2964
|
+
"maxHeapUsed": {
|
|
2965
|
+
"anyOf": [
|
|
2966
|
+
{
|
|
2967
|
+
"type": "number",
|
|
2968
|
+
"minimum": 0,
|
|
2969
|
+
"maximum": 1
|
|
2970
|
+
},
|
|
2971
|
+
{
|
|
2972
|
+
"type": "string"
|
|
2973
|
+
}
|
|
2974
|
+
]
|
|
2975
|
+
},
|
|
2976
|
+
"maxHeapTotal": {
|
|
2977
|
+
"anyOf": [
|
|
2978
|
+
{
|
|
2979
|
+
"type": "number",
|
|
2980
|
+
"minimum": 0
|
|
2981
|
+
},
|
|
2982
|
+
{
|
|
2983
|
+
"type": "string"
|
|
2984
|
+
}
|
|
2985
|
+
]
|
|
2986
|
+
},
|
|
2987
|
+
"maxYoungGeneration": {
|
|
2988
|
+
"anyOf": [
|
|
2989
|
+
{
|
|
2990
|
+
"type": "number",
|
|
2991
|
+
"minimum": 0
|
|
2992
|
+
},
|
|
2993
|
+
{
|
|
2994
|
+
"type": "string"
|
|
2995
|
+
}
|
|
2996
|
+
]
|
|
2997
|
+
},
|
|
2998
|
+
"codeRangeSize": {
|
|
2999
|
+
"anyOf": [
|
|
3000
|
+
{
|
|
3001
|
+
"type": "number",
|
|
3002
|
+
"minimum": 0
|
|
3003
|
+
},
|
|
3004
|
+
{
|
|
3005
|
+
"type": "string"
|
|
3006
|
+
}
|
|
3007
|
+
]
|
|
3008
|
+
}
|
|
3009
|
+
},
|
|
3010
|
+
"additionalProperties": false
|
|
3011
|
+
},
|
|
3012
|
+
"arguments": {
|
|
3013
|
+
"type": "array",
|
|
3014
|
+
"items": {
|
|
3015
|
+
"type": "string"
|
|
3016
|
+
}
|
|
3017
|
+
},
|
|
3018
|
+
"env": {
|
|
3019
|
+
"type": "object",
|
|
3020
|
+
"additionalProperties": {
|
|
3021
|
+
"type": "string"
|
|
3022
|
+
}
|
|
3023
|
+
},
|
|
3024
|
+
"envfile": {
|
|
3025
|
+
"type": "string"
|
|
3026
|
+
},
|
|
3027
|
+
"sourceMaps": {
|
|
3028
|
+
"type": "boolean"
|
|
3029
|
+
},
|
|
3030
|
+
"packageManager": {
|
|
3031
|
+
"type": "string",
|
|
3032
|
+
"enum": [
|
|
3033
|
+
"npm",
|
|
3034
|
+
"pnpm",
|
|
3035
|
+
"yarn"
|
|
3036
|
+
]
|
|
3037
|
+
},
|
|
3038
|
+
"preload": {
|
|
3039
|
+
"anyOf": [
|
|
3040
|
+
{
|
|
3041
|
+
"type": "string",
|
|
3042
|
+
"resolvePath": true
|
|
3043
|
+
},
|
|
3044
|
+
{
|
|
3045
|
+
"type": "array",
|
|
3046
|
+
"items": {
|
|
3047
|
+
"type": "string",
|
|
3048
|
+
"resolvePath": true
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
]
|
|
3052
|
+
},
|
|
3053
|
+
"nodeOptions": {
|
|
3054
|
+
"type": "string"
|
|
3055
|
+
},
|
|
3056
|
+
"execArgv": {
|
|
3057
|
+
"type": "array",
|
|
3058
|
+
"items": {
|
|
3059
|
+
"type": "string"
|
|
3060
|
+
}
|
|
3061
|
+
},
|
|
3062
|
+
"permissions": {
|
|
3063
|
+
"type": "object",
|
|
3064
|
+
"properties": {
|
|
3065
|
+
"fs": {
|
|
3066
|
+
"type": "object",
|
|
3067
|
+
"properties": {
|
|
3068
|
+
"read": {
|
|
3069
|
+
"type": "array",
|
|
3070
|
+
"items": {
|
|
3071
|
+
"type": "string"
|
|
3072
|
+
}
|
|
3073
|
+
},
|
|
3074
|
+
"write": {
|
|
3075
|
+
"type": "array",
|
|
3076
|
+
"items": {
|
|
3077
|
+
"type": "string"
|
|
3078
|
+
}
|
|
3079
|
+
}
|
|
3080
|
+
},
|
|
3081
|
+
"additionalProperties": false
|
|
3082
|
+
}
|
|
3083
|
+
},
|
|
3084
|
+
"additionalProperties": false
|
|
3085
|
+
},
|
|
3086
|
+
"telemetry": {
|
|
3087
|
+
"type": "object",
|
|
3088
|
+
"properties": {
|
|
3089
|
+
"instrumentations": {
|
|
3090
|
+
"type": "array",
|
|
3091
|
+
"description": "An array of instrumentations loaded if telemetry is enabled",
|
|
3092
|
+
"items": {
|
|
3093
|
+
"oneOf": [
|
|
3094
|
+
{
|
|
3095
|
+
"type": "string"
|
|
3096
|
+
},
|
|
3097
|
+
{
|
|
3098
|
+
"type": "object",
|
|
3099
|
+
"properties": {
|
|
3100
|
+
"package": {
|
|
3101
|
+
"type": "string"
|
|
3102
|
+
},
|
|
3103
|
+
"exportName": {
|
|
3104
|
+
"type": "string"
|
|
3105
|
+
},
|
|
3106
|
+
"options": {
|
|
3107
|
+
"type": "object",
|
|
3108
|
+
"additionalProperties": true
|
|
3109
|
+
}
|
|
3110
|
+
},
|
|
3111
|
+
"required": [
|
|
3112
|
+
"package"
|
|
3113
|
+
]
|
|
3114
|
+
}
|
|
3115
|
+
]
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
}
|
|
3119
|
+
}
|
|
3120
|
+
},
|
|
3121
|
+
"additionalProperties": false
|
|
2864
3122
|
}
|
|
2865
3123
|
},
|
|
2866
3124
|
"additionalProperties": false
|