@carllee1983/dbcli 1.52.1 → 1.54.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/.cursor/rules/dbcli.mdc +8 -4
- package/.cursor/skills/dbcli/reference.md +132 -9
- package/.github/skills/dbcli/SKILL.md +8 -4
- package/.github/skills/dbcli/reference.md +132 -9
- package/CHANGELOG.md +39 -0
- package/assets/SKILL.md +8 -4
- package/assets/SKILL.zh-TW.md +6 -3
- package/assets/reference.md +132 -9
- package/assets/ui-template.html +2 -2
- package/dist/cli-runtime.mjs +38407 -96799
- package/dist/cli.mjs +6 -5
- package/dist/core.d.ts +361 -274
- package/dist/core.mjs +9350 -22209
- package/dist/ui-style.css +2 -2
- package/package.json +6 -5
- package/plugins/dbcli-agent/skills/dbcli/SKILL.md +8 -4
- package/plugins/dbcli-agent/skills/dbcli/reference.md +132 -9
- package/skills/dbcli/SKILL.md +8 -4
- package/skills/dbcli/reference.md +132 -9
package/dist/core.d.ts
CHANGED
|
@@ -37,6 +37,12 @@ export interface ConnectionOptions {
|
|
|
37
37
|
srv?: boolean;
|
|
38
38
|
/** Connection timeout in milliseconds (default: 5000) */
|
|
39
39
|
timeout?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Statement timeout in milliseconds. Falls back to `timeout` when unset, and
|
|
42
|
+
* to the server default when neither is given — an unset statement timeout
|
|
43
|
+
* means the server decides, not that 5000ms applies. 0 removes the limit.
|
|
44
|
+
*/
|
|
45
|
+
statementTimeout?: number;
|
|
40
46
|
/** Elasticsearch protocol (http or https) */
|
|
41
47
|
protocol?: "http" | "https";
|
|
42
48
|
/** Elasticsearch nodes for round-robin (optional) */
|
|
@@ -170,6 +176,17 @@ type RedisWarning = {
|
|
|
170
176
|
code: "REDIS_BLACKLIST_FILTERED";
|
|
171
177
|
count: number;
|
|
172
178
|
};
|
|
179
|
+
interface TableSchemaOptions {
|
|
180
|
+
/** MongoDB: 取樣文件數 */
|
|
181
|
+
sampleSize?: number;
|
|
182
|
+
/** MongoDB: 取樣方式 */
|
|
183
|
+
sampleMethod?: "random" | "natural";
|
|
184
|
+
/**
|
|
185
|
+
* 精確列數要掃全表。掃描整個資料庫時設為 false,改用引擎的估計值——
|
|
186
|
+
* 一百張表的資料庫做不起一百次全表 COUNT。預設 true。
|
|
187
|
+
*/
|
|
188
|
+
exactRowCount?: boolean;
|
|
189
|
+
}
|
|
173
190
|
/**
|
|
174
191
|
* Database adapter interface - contract for all database implementations
|
|
175
192
|
* Defines methods that all database adapters must implement
|
|
@@ -213,10 +230,7 @@ export interface DatabaseAdapter {
|
|
|
213
230
|
* @returns Complete table schema including all column details
|
|
214
231
|
* @throws {ConnectionError} If query fails
|
|
215
232
|
*/
|
|
216
|
-
getTableSchema(tableName: string, options?:
|
|
217
|
-
sampleSize?: number;
|
|
218
|
-
sampleMethod?: "random" | "natural";
|
|
219
|
-
}): Promise<TableSchema>;
|
|
233
|
+
getTableSchema(tableName: string, options?: TableSchemaOptions): Promise<TableSchema>;
|
|
220
234
|
/**
|
|
221
235
|
* Test connection with lightweight probe query
|
|
222
236
|
* Executes SELECT 1 or equivalent to verify connection is alive
|
|
@@ -267,10 +281,23 @@ interface QueryableAdapter {
|
|
|
267
281
|
*/
|
|
268
282
|
listCollections(options?: {
|
|
269
283
|
includeSystem?: boolean;
|
|
284
|
+
/** Redis: 取樣上限。列 key 沒有 catalog 可查,只能掃,所以上限是必要的。 */
|
|
285
|
+
limit?: number;
|
|
270
286
|
}): Promise<{
|
|
271
287
|
name: string;
|
|
272
288
|
documentCount?: number;
|
|
273
289
|
}[]>;
|
|
290
|
+
/**
|
|
291
|
+
* Redis-only: 取樣 key 名稱並回報是否觸及取樣上限。
|
|
292
|
+
*
|
|
293
|
+
* 宣告在介面上而不是讓呼叫端 double-cast:`dbcli list` 與 shell 補全都需要
|
|
294
|
+
* `truncated` 才能誠實顯示「只看了前 N 個」,而那個資訊 listCollections
|
|
295
|
+
* 的形狀裝不下。其他引擎有 catalog 可查,不需要取樣。
|
|
296
|
+
*/
|
|
297
|
+
sampleKeyNames?(limit: number): Promise<{
|
|
298
|
+
names: string[];
|
|
299
|
+
truncated: boolean;
|
|
300
|
+
}>;
|
|
274
301
|
/**
|
|
275
302
|
* SQL-compatible collection listing for shared command surfaces.
|
|
276
303
|
* @param options Optional filter for system indices
|
|
@@ -749,6 +776,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
749
776
|
connection: z.ZodUnion<[
|
|
750
777
|
z.ZodObject<{
|
|
751
778
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
779
|
+
statementTimeout: z.ZodOptional<z.ZodNumber>;
|
|
752
780
|
system: z.ZodEnum<[
|
|
753
781
|
"postgresql",
|
|
754
782
|
"mysql",
|
|
@@ -805,27 +833,25 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
805
833
|
}>
|
|
806
834
|
]>;
|
|
807
835
|
}, "strip", z.ZodTypeAny, {
|
|
808
|
-
|
|
836
|
+
system: "postgresql" | "mysql" | "mariadb";
|
|
837
|
+
host: string | {
|
|
809
838
|
$env: string;
|
|
810
839
|
};
|
|
811
|
-
|
|
840
|
+
port: number | {
|
|
812
841
|
$env: string;
|
|
813
842
|
};
|
|
814
|
-
|
|
815
|
-
host: string | {
|
|
843
|
+
user: string | {
|
|
816
844
|
$env: string;
|
|
817
845
|
};
|
|
818
|
-
|
|
846
|
+
password: string | {
|
|
819
847
|
$env: string;
|
|
820
848
|
};
|
|
821
849
|
database: string | {
|
|
822
850
|
$env: string;
|
|
823
851
|
};
|
|
824
852
|
timeout?: number | undefined;
|
|
853
|
+
statementTimeout?: number | undefined;
|
|
825
854
|
}, {
|
|
826
|
-
user: string | {
|
|
827
|
-
$env: string;
|
|
828
|
-
};
|
|
829
855
|
system: "postgresql" | "mysql" | "mariadb";
|
|
830
856
|
host: string | {
|
|
831
857
|
$env: string;
|
|
@@ -833,16 +859,21 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
833
859
|
port: number | {
|
|
834
860
|
$env: string;
|
|
835
861
|
};
|
|
862
|
+
user: string | {
|
|
863
|
+
$env: string;
|
|
864
|
+
};
|
|
836
865
|
database: string | {
|
|
837
866
|
$env: string;
|
|
838
867
|
};
|
|
839
|
-
timeout?: number | undefined;
|
|
840
868
|
password?: string | {
|
|
841
869
|
$env: string;
|
|
842
870
|
} | undefined;
|
|
871
|
+
timeout?: number | undefined;
|
|
872
|
+
statementTimeout?: number | undefined;
|
|
843
873
|
}>,
|
|
844
874
|
z.ZodObject<{
|
|
845
875
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
876
|
+
statementTimeout: z.ZodOptional<z.ZodNumber>;
|
|
846
877
|
system: z.ZodLiteral<"mongodb">;
|
|
847
878
|
uri: z.ZodOptional<z.ZodUnion<[
|
|
848
879
|
z.ZodString,
|
|
@@ -927,24 +958,26 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
927
958
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
928
959
|
srv: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
929
960
|
}, "strip", z.ZodTypeAny, {
|
|
930
|
-
|
|
961
|
+
system: "mongodb";
|
|
962
|
+
host: string | {
|
|
931
963
|
$env: string;
|
|
932
964
|
};
|
|
933
|
-
|
|
965
|
+
port: number | {
|
|
934
966
|
$env: string;
|
|
935
967
|
};
|
|
936
|
-
|
|
937
|
-
host: string | {
|
|
968
|
+
user: string | {
|
|
938
969
|
$env: string;
|
|
939
970
|
};
|
|
940
|
-
|
|
971
|
+
password: string | {
|
|
941
972
|
$env: string;
|
|
942
973
|
};
|
|
943
974
|
database: string | {
|
|
944
975
|
$env: string;
|
|
945
976
|
};
|
|
946
977
|
srv: boolean;
|
|
947
|
-
|
|
978
|
+
uri?: string | {
|
|
979
|
+
$env: string;
|
|
980
|
+
} | undefined;
|
|
948
981
|
authSource?: string | {
|
|
949
982
|
$env: string;
|
|
950
983
|
} | undefined;
|
|
@@ -952,27 +985,28 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
952
985
|
$env: string;
|
|
953
986
|
} | undefined;
|
|
954
987
|
tls?: boolean | undefined;
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
} | undefined;
|
|
988
|
+
timeout?: number | undefined;
|
|
989
|
+
statementTimeout?: number | undefined;
|
|
958
990
|
}, {
|
|
959
991
|
system: "mongodb";
|
|
960
|
-
|
|
961
|
-
password?: string | {
|
|
992
|
+
host?: string | {
|
|
962
993
|
$env: string;
|
|
963
994
|
} | undefined;
|
|
964
|
-
|
|
995
|
+
port?: number | {
|
|
965
996
|
$env: string;
|
|
966
997
|
} | undefined;
|
|
967
|
-
|
|
998
|
+
user?: string | {
|
|
968
999
|
$env: string;
|
|
969
1000
|
} | undefined;
|
|
970
|
-
|
|
1001
|
+
password?: string | {
|
|
971
1002
|
$env: string;
|
|
972
1003
|
} | undefined;
|
|
973
1004
|
database?: string | {
|
|
974
1005
|
$env: string;
|
|
975
1006
|
} | undefined;
|
|
1007
|
+
uri?: string | {
|
|
1008
|
+
$env: string;
|
|
1009
|
+
} | undefined;
|
|
976
1010
|
authSource?: string | {
|
|
977
1011
|
$env: string;
|
|
978
1012
|
} | undefined;
|
|
@@ -981,12 +1015,12 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
981
1015
|
} | undefined;
|
|
982
1016
|
tls?: boolean | undefined;
|
|
983
1017
|
srv?: boolean | undefined;
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
} | undefined;
|
|
1018
|
+
timeout?: number | undefined;
|
|
1019
|
+
statementTimeout?: number | undefined;
|
|
987
1020
|
}>,
|
|
988
1021
|
z.ZodObject<{
|
|
989
1022
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1023
|
+
statementTimeout: z.ZodOptional<z.ZodNumber>;
|
|
990
1024
|
system: z.ZodLiteral<"redis">;
|
|
991
1025
|
host: z.ZodUnion<[
|
|
992
1026
|
z.ZodString,
|
|
@@ -1039,23 +1073,24 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1039
1073
|
}>
|
|
1040
1074
|
]>>>;
|
|
1041
1075
|
}, "strip", z.ZodTypeAny, {
|
|
1042
|
-
|
|
1076
|
+
system: "redis";
|
|
1077
|
+
host: string | {
|
|
1043
1078
|
$env: string;
|
|
1044
1079
|
};
|
|
1045
|
-
|
|
1080
|
+
port: number | {
|
|
1046
1081
|
$env: string;
|
|
1047
1082
|
};
|
|
1048
|
-
|
|
1049
|
-
host: string | {
|
|
1083
|
+
user: string | {
|
|
1050
1084
|
$env: string;
|
|
1051
1085
|
};
|
|
1052
|
-
|
|
1086
|
+
password: string | {
|
|
1053
1087
|
$env: string;
|
|
1054
1088
|
};
|
|
1055
1089
|
database: string | {
|
|
1056
1090
|
$env: string;
|
|
1057
1091
|
};
|
|
1058
1092
|
timeout?: number | undefined;
|
|
1093
|
+
statementTimeout?: number | undefined;
|
|
1059
1094
|
}, {
|
|
1060
1095
|
system: "redis";
|
|
1061
1096
|
host: string | {
|
|
@@ -1064,19 +1099,21 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1064
1099
|
port: number | {
|
|
1065
1100
|
$env: string;
|
|
1066
1101
|
};
|
|
1067
|
-
|
|
1068
|
-
password?: string | {
|
|
1102
|
+
user?: string | {
|
|
1069
1103
|
$env: string;
|
|
1070
1104
|
} | undefined;
|
|
1071
|
-
|
|
1105
|
+
password?: string | {
|
|
1072
1106
|
$env: string;
|
|
1073
1107
|
} | undefined;
|
|
1074
1108
|
database?: string | {
|
|
1075
1109
|
$env: string;
|
|
1076
1110
|
} | undefined;
|
|
1111
|
+
timeout?: number | undefined;
|
|
1112
|
+
statementTimeout?: number | undefined;
|
|
1077
1113
|
}>,
|
|
1078
1114
|
z.ZodObject<{
|
|
1079
1115
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1116
|
+
statementTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1080
1117
|
system: z.ZodLiteral<"elasticsearch">;
|
|
1081
1118
|
protocol: z.ZodDefault<z.ZodOptional<z.ZodEnum<[
|
|
1082
1119
|
"http",
|
|
@@ -1156,17 +1193,17 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1156
1193
|
caPath: z.ZodOptional<z.ZodString>;
|
|
1157
1194
|
rejectUnauthorized: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1158
1195
|
}, "strip", z.ZodTypeAny, {
|
|
1159
|
-
|
|
1196
|
+
system: "elasticsearch";
|
|
1197
|
+
host: string | {
|
|
1160
1198
|
$env: string;
|
|
1161
1199
|
};
|
|
1162
|
-
|
|
1200
|
+
port: number | {
|
|
1163
1201
|
$env: string;
|
|
1164
1202
|
};
|
|
1165
|
-
|
|
1166
|
-
host: string | {
|
|
1203
|
+
user: string | {
|
|
1167
1204
|
$env: string;
|
|
1168
1205
|
};
|
|
1169
|
-
|
|
1206
|
+
password: string | {
|
|
1170
1207
|
$env: string;
|
|
1171
1208
|
};
|
|
1172
1209
|
database: string | {
|
|
@@ -1175,6 +1212,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1175
1212
|
rejectUnauthorized: boolean;
|
|
1176
1213
|
protocol: "http" | "https";
|
|
1177
1214
|
timeout?: number | undefined;
|
|
1215
|
+
statementTimeout?: number | undefined;
|
|
1178
1216
|
nodes?: string[] | undefined;
|
|
1179
1217
|
cloudId?: string | {
|
|
1180
1218
|
$env: string;
|
|
@@ -1185,23 +1223,24 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1185
1223
|
caPath?: string | undefined;
|
|
1186
1224
|
}, {
|
|
1187
1225
|
system: "elasticsearch";
|
|
1188
|
-
|
|
1189
|
-
password?: string | {
|
|
1226
|
+
host?: string | {
|
|
1190
1227
|
$env: string;
|
|
1191
1228
|
} | undefined;
|
|
1192
|
-
|
|
1229
|
+
port?: number | {
|
|
1193
1230
|
$env: string;
|
|
1194
1231
|
} | undefined;
|
|
1195
|
-
|
|
1232
|
+
user?: string | {
|
|
1196
1233
|
$env: string;
|
|
1197
1234
|
} | undefined;
|
|
1198
|
-
|
|
1235
|
+
password?: string | {
|
|
1199
1236
|
$env: string;
|
|
1200
1237
|
} | undefined;
|
|
1201
1238
|
database?: string | {
|
|
1202
1239
|
$env: string;
|
|
1203
1240
|
} | undefined;
|
|
1204
1241
|
rejectUnauthorized?: boolean | undefined;
|
|
1242
|
+
timeout?: number | undefined;
|
|
1243
|
+
statementTimeout?: number | undefined;
|
|
1205
1244
|
protocol?: "http" | "https" | undefined;
|
|
1206
1245
|
nodes?: string[] | undefined;
|
|
1207
1246
|
cloudId?: string | {
|
|
@@ -1306,31 +1345,27 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1306
1345
|
max_entries: number;
|
|
1307
1346
|
};
|
|
1308
1347
|
};
|
|
1309
|
-
metadata: {
|
|
1310
|
-
version: string;
|
|
1311
|
-
createdAt?: string | undefined;
|
|
1312
|
-
schemaLastUpdated?: string | undefined;
|
|
1313
|
-
schemaTableCount?: number | undefined;
|
|
1314
|
-
};
|
|
1315
1348
|
connection: {
|
|
1316
|
-
|
|
1349
|
+
system: "mongodb";
|
|
1350
|
+
host: string | {
|
|
1317
1351
|
$env: string;
|
|
1318
1352
|
};
|
|
1319
|
-
|
|
1353
|
+
port: number | {
|
|
1320
1354
|
$env: string;
|
|
1321
1355
|
};
|
|
1322
|
-
|
|
1323
|
-
host: string | {
|
|
1356
|
+
user: string | {
|
|
1324
1357
|
$env: string;
|
|
1325
1358
|
};
|
|
1326
|
-
|
|
1359
|
+
password: string | {
|
|
1327
1360
|
$env: string;
|
|
1328
1361
|
};
|
|
1329
1362
|
database: string | {
|
|
1330
1363
|
$env: string;
|
|
1331
1364
|
};
|
|
1332
1365
|
srv: boolean;
|
|
1333
|
-
|
|
1366
|
+
uri?: string | {
|
|
1367
|
+
$env: string;
|
|
1368
|
+
} | undefined;
|
|
1334
1369
|
authSource?: string | {
|
|
1335
1370
|
$env: string;
|
|
1336
1371
|
} | undefined;
|
|
@@ -1338,16 +1373,9 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1338
1373
|
$env: string;
|
|
1339
1374
|
} | undefined;
|
|
1340
1375
|
tls?: boolean | undefined;
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
} | undefined;
|
|
1376
|
+
timeout?: number | undefined;
|
|
1377
|
+
statementTimeout?: number | undefined;
|
|
1344
1378
|
} | {
|
|
1345
|
-
password: string | {
|
|
1346
|
-
$env: string;
|
|
1347
|
-
};
|
|
1348
|
-
user: string | {
|
|
1349
|
-
$env: string;
|
|
1350
|
-
};
|
|
1351
1379
|
system: "postgresql" | "mysql" | "mariadb";
|
|
1352
1380
|
host: string | {
|
|
1353
1381
|
$env: string;
|
|
@@ -1355,17 +1383,18 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1355
1383
|
port: number | {
|
|
1356
1384
|
$env: string;
|
|
1357
1385
|
};
|
|
1358
|
-
|
|
1386
|
+
user: string | {
|
|
1359
1387
|
$env: string;
|
|
1360
1388
|
};
|
|
1361
|
-
timeout?: number | undefined;
|
|
1362
|
-
} | {
|
|
1363
1389
|
password: string | {
|
|
1364
1390
|
$env: string;
|
|
1365
1391
|
};
|
|
1366
|
-
|
|
1392
|
+
database: string | {
|
|
1367
1393
|
$env: string;
|
|
1368
1394
|
};
|
|
1395
|
+
timeout?: number | undefined;
|
|
1396
|
+
statementTimeout?: number | undefined;
|
|
1397
|
+
} | {
|
|
1369
1398
|
system: "redis";
|
|
1370
1399
|
host: string | {
|
|
1371
1400
|
$env: string;
|
|
@@ -1373,17 +1402,18 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1373
1402
|
port: number | {
|
|
1374
1403
|
$env: string;
|
|
1375
1404
|
};
|
|
1376
|
-
|
|
1405
|
+
user: string | {
|
|
1377
1406
|
$env: string;
|
|
1378
1407
|
};
|
|
1379
|
-
timeout?: number | undefined;
|
|
1380
|
-
} | {
|
|
1381
1408
|
password: string | {
|
|
1382
1409
|
$env: string;
|
|
1383
1410
|
};
|
|
1384
|
-
|
|
1411
|
+
database: string | {
|
|
1385
1412
|
$env: string;
|
|
1386
1413
|
};
|
|
1414
|
+
timeout?: number | undefined;
|
|
1415
|
+
statementTimeout?: number | undefined;
|
|
1416
|
+
} | {
|
|
1387
1417
|
system: "elasticsearch";
|
|
1388
1418
|
host: string | {
|
|
1389
1419
|
$env: string;
|
|
@@ -1391,12 +1421,19 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1391
1421
|
port: number | {
|
|
1392
1422
|
$env: string;
|
|
1393
1423
|
};
|
|
1424
|
+
user: string | {
|
|
1425
|
+
$env: string;
|
|
1426
|
+
};
|
|
1427
|
+
password: string | {
|
|
1428
|
+
$env: string;
|
|
1429
|
+
};
|
|
1394
1430
|
database: string | {
|
|
1395
1431
|
$env: string;
|
|
1396
1432
|
};
|
|
1397
1433
|
rejectUnauthorized: boolean;
|
|
1398
1434
|
protocol: "http" | "https";
|
|
1399
1435
|
timeout?: number | undefined;
|
|
1436
|
+
statementTimeout?: number | undefined;
|
|
1400
1437
|
nodes?: string[] | undefined;
|
|
1401
1438
|
cloudId?: string | {
|
|
1402
1439
|
$env: string;
|
|
@@ -1407,6 +1444,12 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1407
1444
|
caPath?: string | undefined;
|
|
1408
1445
|
};
|
|
1409
1446
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
1447
|
+
metadata: {
|
|
1448
|
+
version: string;
|
|
1449
|
+
createdAt?: string | undefined;
|
|
1450
|
+
schemaLastUpdated?: string | undefined;
|
|
1451
|
+
schemaTableCount?: number | undefined;
|
|
1452
|
+
};
|
|
1410
1453
|
redis?: {
|
|
1411
1454
|
mask: {
|
|
1412
1455
|
keyPattern: string;
|
|
@@ -1416,22 +1459,24 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1416
1459
|
}, {
|
|
1417
1460
|
connection: {
|
|
1418
1461
|
system: "mongodb";
|
|
1419
|
-
|
|
1420
|
-
password?: string | {
|
|
1462
|
+
host?: string | {
|
|
1421
1463
|
$env: string;
|
|
1422
1464
|
} | undefined;
|
|
1423
|
-
|
|
1465
|
+
port?: number | {
|
|
1424
1466
|
$env: string;
|
|
1425
1467
|
} | undefined;
|
|
1426
|
-
|
|
1468
|
+
user?: string | {
|
|
1427
1469
|
$env: string;
|
|
1428
1470
|
} | undefined;
|
|
1429
|
-
|
|
1471
|
+
password?: string | {
|
|
1430
1472
|
$env: string;
|
|
1431
1473
|
} | undefined;
|
|
1432
1474
|
database?: string | {
|
|
1433
1475
|
$env: string;
|
|
1434
1476
|
} | undefined;
|
|
1477
|
+
uri?: string | {
|
|
1478
|
+
$env: string;
|
|
1479
|
+
} | undefined;
|
|
1435
1480
|
authSource?: string | {
|
|
1436
1481
|
$env: string;
|
|
1437
1482
|
} | undefined;
|
|
@@ -1440,13 +1485,9 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1440
1485
|
} | undefined;
|
|
1441
1486
|
tls?: boolean | undefined;
|
|
1442
1487
|
srv?: boolean | undefined;
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
} | undefined;
|
|
1488
|
+
timeout?: number | undefined;
|
|
1489
|
+
statementTimeout?: number | undefined;
|
|
1446
1490
|
} | {
|
|
1447
|
-
user: string | {
|
|
1448
|
-
$env: string;
|
|
1449
|
-
};
|
|
1450
1491
|
system: "postgresql" | "mysql" | "mariadb";
|
|
1451
1492
|
host: string | {
|
|
1452
1493
|
$env: string;
|
|
@@ -1454,13 +1495,17 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1454
1495
|
port: number | {
|
|
1455
1496
|
$env: string;
|
|
1456
1497
|
};
|
|
1498
|
+
user: string | {
|
|
1499
|
+
$env: string;
|
|
1500
|
+
};
|
|
1457
1501
|
database: string | {
|
|
1458
1502
|
$env: string;
|
|
1459
1503
|
};
|
|
1460
|
-
timeout?: number | undefined;
|
|
1461
1504
|
password?: string | {
|
|
1462
1505
|
$env: string;
|
|
1463
1506
|
} | undefined;
|
|
1507
|
+
timeout?: number | undefined;
|
|
1508
|
+
statementTimeout?: number | undefined;
|
|
1464
1509
|
} | {
|
|
1465
1510
|
system: "redis";
|
|
1466
1511
|
host: string | {
|
|
@@ -1469,35 +1514,37 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1469
1514
|
port: number | {
|
|
1470
1515
|
$env: string;
|
|
1471
1516
|
};
|
|
1472
|
-
|
|
1473
|
-
password?: string | {
|
|
1517
|
+
user?: string | {
|
|
1474
1518
|
$env: string;
|
|
1475
1519
|
} | undefined;
|
|
1476
|
-
|
|
1520
|
+
password?: string | {
|
|
1477
1521
|
$env: string;
|
|
1478
1522
|
} | undefined;
|
|
1479
1523
|
database?: string | {
|
|
1480
1524
|
$env: string;
|
|
1481
1525
|
} | undefined;
|
|
1526
|
+
timeout?: number | undefined;
|
|
1527
|
+
statementTimeout?: number | undefined;
|
|
1482
1528
|
} | {
|
|
1483
1529
|
system: "elasticsearch";
|
|
1484
|
-
|
|
1485
|
-
password?: string | {
|
|
1530
|
+
host?: string | {
|
|
1486
1531
|
$env: string;
|
|
1487
1532
|
} | undefined;
|
|
1488
|
-
|
|
1533
|
+
port?: number | {
|
|
1489
1534
|
$env: string;
|
|
1490
1535
|
} | undefined;
|
|
1491
|
-
|
|
1536
|
+
user?: string | {
|
|
1492
1537
|
$env: string;
|
|
1493
1538
|
} | undefined;
|
|
1494
|
-
|
|
1539
|
+
password?: string | {
|
|
1495
1540
|
$env: string;
|
|
1496
1541
|
} | undefined;
|
|
1497
1542
|
database?: string | {
|
|
1498
1543
|
$env: string;
|
|
1499
1544
|
} | undefined;
|
|
1500
1545
|
rejectUnauthorized?: boolean | undefined;
|
|
1546
|
+
timeout?: number | undefined;
|
|
1547
|
+
statementTimeout?: number | undefined;
|
|
1501
1548
|
protocol?: "http" | "https" | undefined;
|
|
1502
1549
|
nodes?: string[] | undefined;
|
|
1503
1550
|
cloudId?: string | {
|
|
@@ -1526,13 +1573,13 @@ declare const DbcliConfigSchema: z.ZodObject<{
|
|
|
1526
1573
|
max_entries?: number | undefined;
|
|
1527
1574
|
} | undefined;
|
|
1528
1575
|
} | undefined;
|
|
1576
|
+
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
1529
1577
|
metadata?: {
|
|
1530
1578
|
version?: string | undefined;
|
|
1531
1579
|
createdAt?: string | undefined;
|
|
1532
1580
|
schemaLastUpdated?: string | undefined;
|
|
1533
1581
|
schemaTableCount?: number | undefined;
|
|
1534
1582
|
} | undefined;
|
|
1535
|
-
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
1536
1583
|
}>;
|
|
1537
1584
|
/**
|
|
1538
1585
|
* Types inferred from Zod schemas
|
|
@@ -1544,6 +1591,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
1544
1591
|
connections: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[
|
|
1545
1592
|
z.ZodObject<{
|
|
1546
1593
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1594
|
+
statementTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1547
1595
|
system: z.ZodEnum<[
|
|
1548
1596
|
"postgresql",
|
|
1549
1597
|
"mysql",
|
|
@@ -1609,17 +1657,17 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
1609
1657
|
envFile: z.ZodOptional<z.ZodString>;
|
|
1610
1658
|
environment: z.ZodOptional<z.ZodEffects<z.ZodString, string | undefined, string>>;
|
|
1611
1659
|
}, "strip", z.ZodTypeAny, {
|
|
1612
|
-
|
|
1660
|
+
system: "postgresql" | "mysql" | "mariadb";
|
|
1661
|
+
host: string | {
|
|
1613
1662
|
$env: string;
|
|
1614
1663
|
};
|
|
1615
|
-
|
|
1664
|
+
port: number | {
|
|
1616
1665
|
$env: string;
|
|
1617
1666
|
};
|
|
1618
|
-
|
|
1619
|
-
host: string | {
|
|
1667
|
+
user: string | {
|
|
1620
1668
|
$env: string;
|
|
1621
1669
|
};
|
|
1622
|
-
|
|
1670
|
+
password: string | {
|
|
1623
1671
|
$env: string;
|
|
1624
1672
|
};
|
|
1625
1673
|
database: string | {
|
|
@@ -1627,12 +1675,10 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
1627
1675
|
};
|
|
1628
1676
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
1629
1677
|
timeout?: number | undefined;
|
|
1678
|
+
statementTimeout?: number | undefined;
|
|
1630
1679
|
envFile?: string | undefined;
|
|
1631
1680
|
environment?: string | undefined;
|
|
1632
1681
|
}, {
|
|
1633
|
-
user: string | {
|
|
1634
|
-
$env: string;
|
|
1635
|
-
};
|
|
1636
1682
|
system: "postgresql" | "mysql" | "mariadb";
|
|
1637
1683
|
host: string | {
|
|
1638
1684
|
$env: string;
|
|
@@ -1640,19 +1686,24 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
1640
1686
|
port: number | {
|
|
1641
1687
|
$env: string;
|
|
1642
1688
|
};
|
|
1689
|
+
user: string | {
|
|
1690
|
+
$env: string;
|
|
1691
|
+
};
|
|
1643
1692
|
database: string | {
|
|
1644
1693
|
$env: string;
|
|
1645
1694
|
};
|
|
1646
|
-
timeout?: number | undefined;
|
|
1647
1695
|
password?: string | {
|
|
1648
1696
|
$env: string;
|
|
1649
1697
|
} | undefined;
|
|
1698
|
+
timeout?: number | undefined;
|
|
1699
|
+
statementTimeout?: number | undefined;
|
|
1650
1700
|
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
1651
1701
|
envFile?: string | undefined;
|
|
1652
1702
|
environment?: string | undefined;
|
|
1653
1703
|
}>,
|
|
1654
1704
|
z.ZodObject<{
|
|
1655
1705
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1706
|
+
statementTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1656
1707
|
system: z.ZodLiteral<"mongodb">;
|
|
1657
1708
|
uri: z.ZodOptional<z.ZodUnion<[
|
|
1658
1709
|
z.ZodString,
|
|
@@ -1746,17 +1797,17 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
1746
1797
|
envFile: z.ZodOptional<z.ZodString>;
|
|
1747
1798
|
environment: z.ZodOptional<z.ZodEffects<z.ZodString, string | undefined, string>>;
|
|
1748
1799
|
}, "strip", z.ZodTypeAny, {
|
|
1749
|
-
|
|
1800
|
+
system: "mongodb";
|
|
1801
|
+
host: string | {
|
|
1750
1802
|
$env: string;
|
|
1751
1803
|
};
|
|
1752
|
-
|
|
1804
|
+
port: number | {
|
|
1753
1805
|
$env: string;
|
|
1754
1806
|
};
|
|
1755
|
-
|
|
1756
|
-
host: string | {
|
|
1807
|
+
user: string | {
|
|
1757
1808
|
$env: string;
|
|
1758
1809
|
};
|
|
1759
|
-
|
|
1810
|
+
password: string | {
|
|
1760
1811
|
$env: string;
|
|
1761
1812
|
};
|
|
1762
1813
|
database: string | {
|
|
@@ -1764,7 +1815,9 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
1764
1815
|
};
|
|
1765
1816
|
srv: boolean;
|
|
1766
1817
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
1767
|
-
|
|
1818
|
+
uri?: string | {
|
|
1819
|
+
$env: string;
|
|
1820
|
+
} | undefined;
|
|
1768
1821
|
authSource?: string | {
|
|
1769
1822
|
$env: string;
|
|
1770
1823
|
} | undefined;
|
|
@@ -1772,29 +1825,30 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
1772
1825
|
$env: string;
|
|
1773
1826
|
} | undefined;
|
|
1774
1827
|
tls?: boolean | undefined;
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
} | undefined;
|
|
1828
|
+
timeout?: number | undefined;
|
|
1829
|
+
statementTimeout?: number | undefined;
|
|
1778
1830
|
envFile?: string | undefined;
|
|
1779
1831
|
environment?: string | undefined;
|
|
1780
1832
|
}, {
|
|
1781
1833
|
system: "mongodb";
|
|
1782
|
-
|
|
1783
|
-
password?: string | {
|
|
1834
|
+
host?: string | {
|
|
1784
1835
|
$env: string;
|
|
1785
1836
|
} | undefined;
|
|
1786
|
-
|
|
1837
|
+
port?: number | {
|
|
1787
1838
|
$env: string;
|
|
1788
1839
|
} | undefined;
|
|
1789
|
-
|
|
1840
|
+
user?: string | {
|
|
1790
1841
|
$env: string;
|
|
1791
1842
|
} | undefined;
|
|
1792
|
-
|
|
1843
|
+
password?: string | {
|
|
1793
1844
|
$env: string;
|
|
1794
1845
|
} | undefined;
|
|
1795
1846
|
database?: string | {
|
|
1796
1847
|
$env: string;
|
|
1797
1848
|
} | undefined;
|
|
1849
|
+
uri?: string | {
|
|
1850
|
+
$env: string;
|
|
1851
|
+
} | undefined;
|
|
1798
1852
|
authSource?: string | {
|
|
1799
1853
|
$env: string;
|
|
1800
1854
|
} | undefined;
|
|
@@ -1803,15 +1857,15 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
1803
1857
|
} | undefined;
|
|
1804
1858
|
tls?: boolean | undefined;
|
|
1805
1859
|
srv?: boolean | undefined;
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
} | undefined;
|
|
1860
|
+
timeout?: number | undefined;
|
|
1861
|
+
statementTimeout?: number | undefined;
|
|
1809
1862
|
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
1810
1863
|
envFile?: string | undefined;
|
|
1811
1864
|
environment?: string | undefined;
|
|
1812
1865
|
}>,
|
|
1813
1866
|
z.ZodObject<{
|
|
1814
1867
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1868
|
+
statementTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1815
1869
|
system: z.ZodLiteral<"redis">;
|
|
1816
1870
|
host: z.ZodUnion<[
|
|
1817
1871
|
z.ZodString,
|
|
@@ -1873,17 +1927,17 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
1873
1927
|
envFile: z.ZodOptional<z.ZodString>;
|
|
1874
1928
|
environment: z.ZodOptional<z.ZodEffects<z.ZodString, string | undefined, string>>;
|
|
1875
1929
|
}, "strip", z.ZodTypeAny, {
|
|
1876
|
-
|
|
1930
|
+
system: "redis";
|
|
1931
|
+
host: string | {
|
|
1877
1932
|
$env: string;
|
|
1878
1933
|
};
|
|
1879
|
-
|
|
1934
|
+
port: number | {
|
|
1880
1935
|
$env: string;
|
|
1881
1936
|
};
|
|
1882
|
-
|
|
1883
|
-
host: string | {
|
|
1937
|
+
user: string | {
|
|
1884
1938
|
$env: string;
|
|
1885
1939
|
};
|
|
1886
|
-
|
|
1940
|
+
password: string | {
|
|
1887
1941
|
$env: string;
|
|
1888
1942
|
};
|
|
1889
1943
|
database: string | {
|
|
@@ -1891,6 +1945,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
1891
1945
|
};
|
|
1892
1946
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
1893
1947
|
timeout?: number | undefined;
|
|
1948
|
+
statementTimeout?: number | undefined;
|
|
1894
1949
|
envFile?: string | undefined;
|
|
1895
1950
|
environment?: string | undefined;
|
|
1896
1951
|
}, {
|
|
@@ -1901,22 +1956,24 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
1901
1956
|
port: number | {
|
|
1902
1957
|
$env: string;
|
|
1903
1958
|
};
|
|
1904
|
-
|
|
1905
|
-
password?: string | {
|
|
1959
|
+
user?: string | {
|
|
1906
1960
|
$env: string;
|
|
1907
1961
|
} | undefined;
|
|
1908
|
-
|
|
1962
|
+
password?: string | {
|
|
1909
1963
|
$env: string;
|
|
1910
1964
|
} | undefined;
|
|
1911
1965
|
database?: string | {
|
|
1912
1966
|
$env: string;
|
|
1913
1967
|
} | undefined;
|
|
1968
|
+
timeout?: number | undefined;
|
|
1969
|
+
statementTimeout?: number | undefined;
|
|
1914
1970
|
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
1915
1971
|
envFile?: string | undefined;
|
|
1916
1972
|
environment?: string | undefined;
|
|
1917
1973
|
}>,
|
|
1918
1974
|
z.ZodObject<{
|
|
1919
1975
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1976
|
+
statementTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1920
1977
|
system: z.ZodLiteral<"elasticsearch">;
|
|
1921
1978
|
protocol: z.ZodDefault<z.ZodOptional<z.ZodEnum<[
|
|
1922
1979
|
"http",
|
|
@@ -2005,17 +2062,17 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2005
2062
|
envFile: z.ZodOptional<z.ZodString>;
|
|
2006
2063
|
environment: z.ZodOptional<z.ZodEffects<z.ZodString, string | undefined, string>>;
|
|
2007
2064
|
}, "strip", z.ZodTypeAny, {
|
|
2008
|
-
|
|
2065
|
+
system: "elasticsearch";
|
|
2066
|
+
host: string | {
|
|
2009
2067
|
$env: string;
|
|
2010
2068
|
};
|
|
2011
|
-
|
|
2069
|
+
port: number | {
|
|
2012
2070
|
$env: string;
|
|
2013
2071
|
};
|
|
2014
|
-
|
|
2015
|
-
host: string | {
|
|
2072
|
+
user: string | {
|
|
2016
2073
|
$env: string;
|
|
2017
2074
|
};
|
|
2018
|
-
|
|
2075
|
+
password: string | {
|
|
2019
2076
|
$env: string;
|
|
2020
2077
|
};
|
|
2021
2078
|
database: string | {
|
|
@@ -2025,6 +2082,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2025
2082
|
protocol: "http" | "https";
|
|
2026
2083
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2027
2084
|
timeout?: number | undefined;
|
|
2085
|
+
statementTimeout?: number | undefined;
|
|
2028
2086
|
nodes?: string[] | undefined;
|
|
2029
2087
|
cloudId?: string | {
|
|
2030
2088
|
$env: string;
|
|
@@ -2037,23 +2095,24 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2037
2095
|
environment?: string | undefined;
|
|
2038
2096
|
}, {
|
|
2039
2097
|
system: "elasticsearch";
|
|
2040
|
-
|
|
2041
|
-
password?: string | {
|
|
2098
|
+
host?: string | {
|
|
2042
2099
|
$env: string;
|
|
2043
2100
|
} | undefined;
|
|
2044
|
-
|
|
2101
|
+
port?: number | {
|
|
2045
2102
|
$env: string;
|
|
2046
2103
|
} | undefined;
|
|
2047
|
-
|
|
2104
|
+
user?: string | {
|
|
2048
2105
|
$env: string;
|
|
2049
2106
|
} | undefined;
|
|
2050
|
-
|
|
2107
|
+
password?: string | {
|
|
2051
2108
|
$env: string;
|
|
2052
2109
|
} | undefined;
|
|
2053
2110
|
database?: string | {
|
|
2054
2111
|
$env: string;
|
|
2055
2112
|
} | undefined;
|
|
2056
2113
|
rejectUnauthorized?: boolean | undefined;
|
|
2114
|
+
timeout?: number | undefined;
|
|
2115
|
+
statementTimeout?: number | undefined;
|
|
2057
2116
|
protocol?: "http" | "https" | undefined;
|
|
2058
2117
|
nodes?: string[] | undefined;
|
|
2059
2118
|
cloudId?: string | {
|
|
@@ -2068,17 +2127,17 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2068
2127
|
environment?: string | undefined;
|
|
2069
2128
|
}>
|
|
2070
2129
|
]>>, Record<string, {
|
|
2071
|
-
|
|
2130
|
+
system: "postgresql" | "mysql" | "mariadb";
|
|
2131
|
+
host: string | {
|
|
2072
2132
|
$env: string;
|
|
2073
2133
|
};
|
|
2074
|
-
|
|
2134
|
+
port: number | {
|
|
2075
2135
|
$env: string;
|
|
2076
2136
|
};
|
|
2077
|
-
|
|
2078
|
-
host: string | {
|
|
2137
|
+
user: string | {
|
|
2079
2138
|
$env: string;
|
|
2080
2139
|
};
|
|
2081
|
-
|
|
2140
|
+
password: string | {
|
|
2082
2141
|
$env: string;
|
|
2083
2142
|
};
|
|
2084
2143
|
database: string | {
|
|
@@ -2086,20 +2145,21 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2086
2145
|
};
|
|
2087
2146
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2088
2147
|
timeout?: number | undefined;
|
|
2148
|
+
statementTimeout?: number | undefined;
|
|
2089
2149
|
envFile?: string | undefined;
|
|
2090
2150
|
environment?: string | undefined;
|
|
2091
2151
|
} | {
|
|
2092
|
-
|
|
2152
|
+
system: "mongodb";
|
|
2153
|
+
host: string | {
|
|
2093
2154
|
$env: string;
|
|
2094
2155
|
};
|
|
2095
|
-
|
|
2156
|
+
port: number | {
|
|
2096
2157
|
$env: string;
|
|
2097
2158
|
};
|
|
2098
|
-
|
|
2099
|
-
host: string | {
|
|
2159
|
+
user: string | {
|
|
2100
2160
|
$env: string;
|
|
2101
2161
|
};
|
|
2102
|
-
|
|
2162
|
+
password: string | {
|
|
2103
2163
|
$env: string;
|
|
2104
2164
|
};
|
|
2105
2165
|
database: string | {
|
|
@@ -2107,7 +2167,9 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2107
2167
|
};
|
|
2108
2168
|
srv: boolean;
|
|
2109
2169
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2110
|
-
|
|
2170
|
+
uri?: string | {
|
|
2171
|
+
$env: string;
|
|
2172
|
+
} | undefined;
|
|
2111
2173
|
authSource?: string | {
|
|
2112
2174
|
$env: string;
|
|
2113
2175
|
} | undefined;
|
|
@@ -2115,23 +2177,22 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2115
2177
|
$env: string;
|
|
2116
2178
|
} | undefined;
|
|
2117
2179
|
tls?: boolean | undefined;
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
} | undefined;
|
|
2180
|
+
timeout?: number | undefined;
|
|
2181
|
+
statementTimeout?: number | undefined;
|
|
2121
2182
|
envFile?: string | undefined;
|
|
2122
2183
|
environment?: string | undefined;
|
|
2123
2184
|
} | {
|
|
2124
|
-
|
|
2185
|
+
system: "redis";
|
|
2186
|
+
host: string | {
|
|
2125
2187
|
$env: string;
|
|
2126
2188
|
};
|
|
2127
|
-
|
|
2189
|
+
port: number | {
|
|
2128
2190
|
$env: string;
|
|
2129
2191
|
};
|
|
2130
|
-
|
|
2131
|
-
host: string | {
|
|
2192
|
+
user: string | {
|
|
2132
2193
|
$env: string;
|
|
2133
2194
|
};
|
|
2134
|
-
|
|
2195
|
+
password: string | {
|
|
2135
2196
|
$env: string;
|
|
2136
2197
|
};
|
|
2137
2198
|
database: string | {
|
|
@@ -2139,20 +2200,21 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2139
2200
|
};
|
|
2140
2201
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2141
2202
|
timeout?: number | undefined;
|
|
2203
|
+
statementTimeout?: number | undefined;
|
|
2142
2204
|
envFile?: string | undefined;
|
|
2143
2205
|
environment?: string | undefined;
|
|
2144
2206
|
} | {
|
|
2145
|
-
|
|
2207
|
+
system: "elasticsearch";
|
|
2208
|
+
host: string | {
|
|
2146
2209
|
$env: string;
|
|
2147
2210
|
};
|
|
2148
|
-
|
|
2211
|
+
port: number | {
|
|
2149
2212
|
$env: string;
|
|
2150
2213
|
};
|
|
2151
|
-
|
|
2152
|
-
host: string | {
|
|
2214
|
+
user: string | {
|
|
2153
2215
|
$env: string;
|
|
2154
2216
|
};
|
|
2155
|
-
|
|
2217
|
+
password: string | {
|
|
2156
2218
|
$env: string;
|
|
2157
2219
|
};
|
|
2158
2220
|
database: string | {
|
|
@@ -2162,6 +2224,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2162
2224
|
protocol: "http" | "https";
|
|
2163
2225
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2164
2226
|
timeout?: number | undefined;
|
|
2227
|
+
statementTimeout?: number | undefined;
|
|
2165
2228
|
nodes?: string[] | undefined;
|
|
2166
2229
|
cloudId?: string | {
|
|
2167
2230
|
$env: string;
|
|
@@ -2173,9 +2236,6 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2173
2236
|
envFile?: string | undefined;
|
|
2174
2237
|
environment?: string | undefined;
|
|
2175
2238
|
}>, Record<string, {
|
|
2176
|
-
user: string | {
|
|
2177
|
-
$env: string;
|
|
2178
|
-
};
|
|
2179
2239
|
system: "postgresql" | "mysql" | "mariadb";
|
|
2180
2240
|
host: string | {
|
|
2181
2241
|
$env: string;
|
|
@@ -2183,34 +2243,40 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2183
2243
|
port: number | {
|
|
2184
2244
|
$env: string;
|
|
2185
2245
|
};
|
|
2246
|
+
user: string | {
|
|
2247
|
+
$env: string;
|
|
2248
|
+
};
|
|
2186
2249
|
database: string | {
|
|
2187
2250
|
$env: string;
|
|
2188
2251
|
};
|
|
2189
|
-
timeout?: number | undefined;
|
|
2190
2252
|
password?: string | {
|
|
2191
2253
|
$env: string;
|
|
2192
2254
|
} | undefined;
|
|
2255
|
+
timeout?: number | undefined;
|
|
2256
|
+
statementTimeout?: number | undefined;
|
|
2193
2257
|
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
2194
2258
|
envFile?: string | undefined;
|
|
2195
2259
|
environment?: string | undefined;
|
|
2196
2260
|
} | {
|
|
2197
2261
|
system: "mongodb";
|
|
2198
|
-
|
|
2199
|
-
password?: string | {
|
|
2262
|
+
host?: string | {
|
|
2200
2263
|
$env: string;
|
|
2201
2264
|
} | undefined;
|
|
2202
|
-
|
|
2265
|
+
port?: number | {
|
|
2203
2266
|
$env: string;
|
|
2204
2267
|
} | undefined;
|
|
2205
|
-
|
|
2268
|
+
user?: string | {
|
|
2206
2269
|
$env: string;
|
|
2207
2270
|
} | undefined;
|
|
2208
|
-
|
|
2271
|
+
password?: string | {
|
|
2209
2272
|
$env: string;
|
|
2210
2273
|
} | undefined;
|
|
2211
2274
|
database?: string | {
|
|
2212
2275
|
$env: string;
|
|
2213
2276
|
} | undefined;
|
|
2277
|
+
uri?: string | {
|
|
2278
|
+
$env: string;
|
|
2279
|
+
} | undefined;
|
|
2214
2280
|
authSource?: string | {
|
|
2215
2281
|
$env: string;
|
|
2216
2282
|
} | undefined;
|
|
@@ -2219,9 +2285,8 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2219
2285
|
} | undefined;
|
|
2220
2286
|
tls?: boolean | undefined;
|
|
2221
2287
|
srv?: boolean | undefined;
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
} | undefined;
|
|
2288
|
+
timeout?: number | undefined;
|
|
2289
|
+
statementTimeout?: number | undefined;
|
|
2225
2290
|
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
2226
2291
|
envFile?: string | undefined;
|
|
2227
2292
|
environment?: string | undefined;
|
|
@@ -2233,38 +2298,40 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2233
2298
|
port: number | {
|
|
2234
2299
|
$env: string;
|
|
2235
2300
|
};
|
|
2236
|
-
|
|
2237
|
-
password?: string | {
|
|
2301
|
+
user?: string | {
|
|
2238
2302
|
$env: string;
|
|
2239
2303
|
} | undefined;
|
|
2240
|
-
|
|
2304
|
+
password?: string | {
|
|
2241
2305
|
$env: string;
|
|
2242
2306
|
} | undefined;
|
|
2243
2307
|
database?: string | {
|
|
2244
2308
|
$env: string;
|
|
2245
2309
|
} | undefined;
|
|
2310
|
+
timeout?: number | undefined;
|
|
2311
|
+
statementTimeout?: number | undefined;
|
|
2246
2312
|
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
2247
2313
|
envFile?: string | undefined;
|
|
2248
2314
|
environment?: string | undefined;
|
|
2249
2315
|
} | {
|
|
2250
2316
|
system: "elasticsearch";
|
|
2251
|
-
|
|
2252
|
-
password?: string | {
|
|
2317
|
+
host?: string | {
|
|
2253
2318
|
$env: string;
|
|
2254
2319
|
} | undefined;
|
|
2255
|
-
|
|
2320
|
+
port?: number | {
|
|
2256
2321
|
$env: string;
|
|
2257
2322
|
} | undefined;
|
|
2258
|
-
|
|
2323
|
+
user?: string | {
|
|
2259
2324
|
$env: string;
|
|
2260
2325
|
} | undefined;
|
|
2261
|
-
|
|
2326
|
+
password?: string | {
|
|
2262
2327
|
$env: string;
|
|
2263
2328
|
} | undefined;
|
|
2264
2329
|
database?: string | {
|
|
2265
2330
|
$env: string;
|
|
2266
2331
|
} | undefined;
|
|
2267
2332
|
rejectUnauthorized?: boolean | undefined;
|
|
2333
|
+
timeout?: number | undefined;
|
|
2334
|
+
statementTimeout?: number | undefined;
|
|
2268
2335
|
protocol?: "http" | "https" | undefined;
|
|
2269
2336
|
nodes?: string[] | undefined;
|
|
2270
2337
|
cloudId?: string | {
|
|
@@ -2375,17 +2442,17 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2375
2442
|
schemaTableCount?: number | undefined;
|
|
2376
2443
|
};
|
|
2377
2444
|
connections: Record<string, {
|
|
2378
|
-
|
|
2445
|
+
system: "postgresql" | "mysql" | "mariadb";
|
|
2446
|
+
host: string | {
|
|
2379
2447
|
$env: string;
|
|
2380
2448
|
};
|
|
2381
|
-
|
|
2449
|
+
port: number | {
|
|
2382
2450
|
$env: string;
|
|
2383
2451
|
};
|
|
2384
|
-
|
|
2385
|
-
host: string | {
|
|
2452
|
+
user: string | {
|
|
2386
2453
|
$env: string;
|
|
2387
2454
|
};
|
|
2388
|
-
|
|
2455
|
+
password: string | {
|
|
2389
2456
|
$env: string;
|
|
2390
2457
|
};
|
|
2391
2458
|
database: string | {
|
|
@@ -2393,20 +2460,21 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2393
2460
|
};
|
|
2394
2461
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2395
2462
|
timeout?: number | undefined;
|
|
2463
|
+
statementTimeout?: number | undefined;
|
|
2396
2464
|
envFile?: string | undefined;
|
|
2397
2465
|
environment?: string | undefined;
|
|
2398
2466
|
} | {
|
|
2399
|
-
|
|
2467
|
+
system: "mongodb";
|
|
2468
|
+
host: string | {
|
|
2400
2469
|
$env: string;
|
|
2401
2470
|
};
|
|
2402
|
-
|
|
2471
|
+
port: number | {
|
|
2403
2472
|
$env: string;
|
|
2404
2473
|
};
|
|
2405
|
-
|
|
2406
|
-
host: string | {
|
|
2474
|
+
user: string | {
|
|
2407
2475
|
$env: string;
|
|
2408
2476
|
};
|
|
2409
|
-
|
|
2477
|
+
password: string | {
|
|
2410
2478
|
$env: string;
|
|
2411
2479
|
};
|
|
2412
2480
|
database: string | {
|
|
@@ -2414,7 +2482,9 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2414
2482
|
};
|
|
2415
2483
|
srv: boolean;
|
|
2416
2484
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2417
|
-
|
|
2485
|
+
uri?: string | {
|
|
2486
|
+
$env: string;
|
|
2487
|
+
} | undefined;
|
|
2418
2488
|
authSource?: string | {
|
|
2419
2489
|
$env: string;
|
|
2420
2490
|
} | undefined;
|
|
@@ -2422,23 +2492,22 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2422
2492
|
$env: string;
|
|
2423
2493
|
} | undefined;
|
|
2424
2494
|
tls?: boolean | undefined;
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
} | undefined;
|
|
2495
|
+
timeout?: number | undefined;
|
|
2496
|
+
statementTimeout?: number | undefined;
|
|
2428
2497
|
envFile?: string | undefined;
|
|
2429
2498
|
environment?: string | undefined;
|
|
2430
2499
|
} | {
|
|
2431
|
-
|
|
2500
|
+
system: "redis";
|
|
2501
|
+
host: string | {
|
|
2432
2502
|
$env: string;
|
|
2433
2503
|
};
|
|
2434
|
-
|
|
2504
|
+
port: number | {
|
|
2435
2505
|
$env: string;
|
|
2436
2506
|
};
|
|
2437
|
-
|
|
2438
|
-
host: string | {
|
|
2507
|
+
user: string | {
|
|
2439
2508
|
$env: string;
|
|
2440
2509
|
};
|
|
2441
|
-
|
|
2510
|
+
password: string | {
|
|
2442
2511
|
$env: string;
|
|
2443
2512
|
};
|
|
2444
2513
|
database: string | {
|
|
@@ -2446,20 +2515,21 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2446
2515
|
};
|
|
2447
2516
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2448
2517
|
timeout?: number | undefined;
|
|
2518
|
+
statementTimeout?: number | undefined;
|
|
2449
2519
|
envFile?: string | undefined;
|
|
2450
2520
|
environment?: string | undefined;
|
|
2451
2521
|
} | {
|
|
2452
|
-
|
|
2522
|
+
system: "elasticsearch";
|
|
2523
|
+
host: string | {
|
|
2453
2524
|
$env: string;
|
|
2454
2525
|
};
|
|
2455
|
-
|
|
2526
|
+
port: number | {
|
|
2456
2527
|
$env: string;
|
|
2457
2528
|
};
|
|
2458
|
-
|
|
2459
|
-
host: string | {
|
|
2529
|
+
user: string | {
|
|
2460
2530
|
$env: string;
|
|
2461
2531
|
};
|
|
2462
|
-
|
|
2532
|
+
password: string | {
|
|
2463
2533
|
$env: string;
|
|
2464
2534
|
};
|
|
2465
2535
|
database: string | {
|
|
@@ -2469,6 +2539,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2469
2539
|
protocol: "http" | "https";
|
|
2470
2540
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2471
2541
|
timeout?: number | undefined;
|
|
2542
|
+
statementTimeout?: number | undefined;
|
|
2472
2543
|
nodes?: string[] | undefined;
|
|
2473
2544
|
cloudId?: string | {
|
|
2474
2545
|
$env: string;
|
|
@@ -2491,9 +2562,6 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2491
2562
|
version: 2;
|
|
2492
2563
|
default: string;
|
|
2493
2564
|
connections: Record<string, {
|
|
2494
|
-
user: string | {
|
|
2495
|
-
$env: string;
|
|
2496
|
-
};
|
|
2497
2565
|
system: "postgresql" | "mysql" | "mariadb";
|
|
2498
2566
|
host: string | {
|
|
2499
2567
|
$env: string;
|
|
@@ -2501,34 +2569,40 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2501
2569
|
port: number | {
|
|
2502
2570
|
$env: string;
|
|
2503
2571
|
};
|
|
2572
|
+
user: string | {
|
|
2573
|
+
$env: string;
|
|
2574
|
+
};
|
|
2504
2575
|
database: string | {
|
|
2505
2576
|
$env: string;
|
|
2506
2577
|
};
|
|
2507
|
-
timeout?: number | undefined;
|
|
2508
2578
|
password?: string | {
|
|
2509
2579
|
$env: string;
|
|
2510
2580
|
} | undefined;
|
|
2581
|
+
timeout?: number | undefined;
|
|
2582
|
+
statementTimeout?: number | undefined;
|
|
2511
2583
|
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
2512
2584
|
envFile?: string | undefined;
|
|
2513
2585
|
environment?: string | undefined;
|
|
2514
2586
|
} | {
|
|
2515
2587
|
system: "mongodb";
|
|
2516
|
-
|
|
2517
|
-
password?: string | {
|
|
2588
|
+
host?: string | {
|
|
2518
2589
|
$env: string;
|
|
2519
2590
|
} | undefined;
|
|
2520
|
-
|
|
2591
|
+
port?: number | {
|
|
2521
2592
|
$env: string;
|
|
2522
2593
|
} | undefined;
|
|
2523
|
-
|
|
2594
|
+
user?: string | {
|
|
2524
2595
|
$env: string;
|
|
2525
2596
|
} | undefined;
|
|
2526
|
-
|
|
2597
|
+
password?: string | {
|
|
2527
2598
|
$env: string;
|
|
2528
2599
|
} | undefined;
|
|
2529
2600
|
database?: string | {
|
|
2530
2601
|
$env: string;
|
|
2531
2602
|
} | undefined;
|
|
2603
|
+
uri?: string | {
|
|
2604
|
+
$env: string;
|
|
2605
|
+
} | undefined;
|
|
2532
2606
|
authSource?: string | {
|
|
2533
2607
|
$env: string;
|
|
2534
2608
|
} | undefined;
|
|
@@ -2537,9 +2611,8 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2537
2611
|
} | undefined;
|
|
2538
2612
|
tls?: boolean | undefined;
|
|
2539
2613
|
srv?: boolean | undefined;
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
} | undefined;
|
|
2614
|
+
timeout?: number | undefined;
|
|
2615
|
+
statementTimeout?: number | undefined;
|
|
2543
2616
|
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
2544
2617
|
envFile?: string | undefined;
|
|
2545
2618
|
environment?: string | undefined;
|
|
@@ -2551,38 +2624,40 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2551
2624
|
port: number | {
|
|
2552
2625
|
$env: string;
|
|
2553
2626
|
};
|
|
2554
|
-
|
|
2555
|
-
password?: string | {
|
|
2627
|
+
user?: string | {
|
|
2556
2628
|
$env: string;
|
|
2557
2629
|
} | undefined;
|
|
2558
|
-
|
|
2630
|
+
password?: string | {
|
|
2559
2631
|
$env: string;
|
|
2560
2632
|
} | undefined;
|
|
2561
2633
|
database?: string | {
|
|
2562
2634
|
$env: string;
|
|
2563
2635
|
} | undefined;
|
|
2636
|
+
timeout?: number | undefined;
|
|
2637
|
+
statementTimeout?: number | undefined;
|
|
2564
2638
|
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
2565
2639
|
envFile?: string | undefined;
|
|
2566
2640
|
environment?: string | undefined;
|
|
2567
2641
|
} | {
|
|
2568
2642
|
system: "elasticsearch";
|
|
2569
|
-
|
|
2570
|
-
password?: string | {
|
|
2643
|
+
host?: string | {
|
|
2571
2644
|
$env: string;
|
|
2572
2645
|
} | undefined;
|
|
2573
|
-
|
|
2646
|
+
port?: number | {
|
|
2574
2647
|
$env: string;
|
|
2575
2648
|
} | undefined;
|
|
2576
|
-
|
|
2649
|
+
user?: string | {
|
|
2577
2650
|
$env: string;
|
|
2578
2651
|
} | undefined;
|
|
2579
|
-
|
|
2652
|
+
password?: string | {
|
|
2580
2653
|
$env: string;
|
|
2581
2654
|
} | undefined;
|
|
2582
2655
|
database?: string | {
|
|
2583
2656
|
$env: string;
|
|
2584
2657
|
} | undefined;
|
|
2585
2658
|
rejectUnauthorized?: boolean | undefined;
|
|
2659
|
+
timeout?: number | undefined;
|
|
2660
|
+
statementTimeout?: number | undefined;
|
|
2586
2661
|
protocol?: "http" | "https" | undefined;
|
|
2587
2662
|
nodes?: string[] | undefined;
|
|
2588
2663
|
cloudId?: string | {
|
|
@@ -2643,17 +2718,17 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2643
2718
|
schemaTableCount?: number | undefined;
|
|
2644
2719
|
};
|
|
2645
2720
|
connections: Record<string, {
|
|
2646
|
-
|
|
2721
|
+
system: "postgresql" | "mysql" | "mariadb";
|
|
2722
|
+
host: string | {
|
|
2647
2723
|
$env: string;
|
|
2648
2724
|
};
|
|
2649
|
-
|
|
2725
|
+
port: number | {
|
|
2650
2726
|
$env: string;
|
|
2651
2727
|
};
|
|
2652
|
-
|
|
2653
|
-
host: string | {
|
|
2728
|
+
user: string | {
|
|
2654
2729
|
$env: string;
|
|
2655
2730
|
};
|
|
2656
|
-
|
|
2731
|
+
password: string | {
|
|
2657
2732
|
$env: string;
|
|
2658
2733
|
};
|
|
2659
2734
|
database: string | {
|
|
@@ -2661,20 +2736,21 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2661
2736
|
};
|
|
2662
2737
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2663
2738
|
timeout?: number | undefined;
|
|
2739
|
+
statementTimeout?: number | undefined;
|
|
2664
2740
|
envFile?: string | undefined;
|
|
2665
2741
|
environment?: string | undefined;
|
|
2666
2742
|
} | {
|
|
2667
|
-
|
|
2743
|
+
system: "mongodb";
|
|
2744
|
+
host: string | {
|
|
2668
2745
|
$env: string;
|
|
2669
2746
|
};
|
|
2670
|
-
|
|
2747
|
+
port: number | {
|
|
2671
2748
|
$env: string;
|
|
2672
2749
|
};
|
|
2673
|
-
|
|
2674
|
-
host: string | {
|
|
2750
|
+
user: string | {
|
|
2675
2751
|
$env: string;
|
|
2676
2752
|
};
|
|
2677
|
-
|
|
2753
|
+
password: string | {
|
|
2678
2754
|
$env: string;
|
|
2679
2755
|
};
|
|
2680
2756
|
database: string | {
|
|
@@ -2682,7 +2758,9 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2682
2758
|
};
|
|
2683
2759
|
srv: boolean;
|
|
2684
2760
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2685
|
-
|
|
2761
|
+
uri?: string | {
|
|
2762
|
+
$env: string;
|
|
2763
|
+
} | undefined;
|
|
2686
2764
|
authSource?: string | {
|
|
2687
2765
|
$env: string;
|
|
2688
2766
|
} | undefined;
|
|
@@ -2690,23 +2768,22 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2690
2768
|
$env: string;
|
|
2691
2769
|
} | undefined;
|
|
2692
2770
|
tls?: boolean | undefined;
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
} | undefined;
|
|
2771
|
+
timeout?: number | undefined;
|
|
2772
|
+
statementTimeout?: number | undefined;
|
|
2696
2773
|
envFile?: string | undefined;
|
|
2697
2774
|
environment?: string | undefined;
|
|
2698
2775
|
} | {
|
|
2699
|
-
|
|
2776
|
+
system: "redis";
|
|
2777
|
+
host: string | {
|
|
2700
2778
|
$env: string;
|
|
2701
2779
|
};
|
|
2702
|
-
|
|
2780
|
+
port: number | {
|
|
2703
2781
|
$env: string;
|
|
2704
2782
|
};
|
|
2705
|
-
|
|
2706
|
-
host: string | {
|
|
2783
|
+
user: string | {
|
|
2707
2784
|
$env: string;
|
|
2708
2785
|
};
|
|
2709
|
-
|
|
2786
|
+
password: string | {
|
|
2710
2787
|
$env: string;
|
|
2711
2788
|
};
|
|
2712
2789
|
database: string | {
|
|
@@ -2714,20 +2791,21 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2714
2791
|
};
|
|
2715
2792
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2716
2793
|
timeout?: number | undefined;
|
|
2794
|
+
statementTimeout?: number | undefined;
|
|
2717
2795
|
envFile?: string | undefined;
|
|
2718
2796
|
environment?: string | undefined;
|
|
2719
2797
|
} | {
|
|
2720
|
-
|
|
2798
|
+
system: "elasticsearch";
|
|
2799
|
+
host: string | {
|
|
2721
2800
|
$env: string;
|
|
2722
2801
|
};
|
|
2723
|
-
|
|
2802
|
+
port: number | {
|
|
2724
2803
|
$env: string;
|
|
2725
2804
|
};
|
|
2726
|
-
|
|
2727
|
-
host: string | {
|
|
2805
|
+
user: string | {
|
|
2728
2806
|
$env: string;
|
|
2729
2807
|
};
|
|
2730
|
-
|
|
2808
|
+
password: string | {
|
|
2731
2809
|
$env: string;
|
|
2732
2810
|
};
|
|
2733
2811
|
database: string | {
|
|
@@ -2737,6 +2815,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2737
2815
|
protocol: "http" | "https";
|
|
2738
2816
|
permission: "admin" | "query-only" | "read-write" | "data-admin";
|
|
2739
2817
|
timeout?: number | undefined;
|
|
2818
|
+
statementTimeout?: number | undefined;
|
|
2740
2819
|
nodes?: string[] | undefined;
|
|
2741
2820
|
cloudId?: string | {
|
|
2742
2821
|
$env: string;
|
|
@@ -2759,9 +2838,6 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2759
2838
|
version: 2;
|
|
2760
2839
|
default: string;
|
|
2761
2840
|
connections: Record<string, {
|
|
2762
|
-
user: string | {
|
|
2763
|
-
$env: string;
|
|
2764
|
-
};
|
|
2765
2841
|
system: "postgresql" | "mysql" | "mariadb";
|
|
2766
2842
|
host: string | {
|
|
2767
2843
|
$env: string;
|
|
@@ -2769,34 +2845,40 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2769
2845
|
port: number | {
|
|
2770
2846
|
$env: string;
|
|
2771
2847
|
};
|
|
2848
|
+
user: string | {
|
|
2849
|
+
$env: string;
|
|
2850
|
+
};
|
|
2772
2851
|
database: string | {
|
|
2773
2852
|
$env: string;
|
|
2774
2853
|
};
|
|
2775
|
-
timeout?: number | undefined;
|
|
2776
2854
|
password?: string | {
|
|
2777
2855
|
$env: string;
|
|
2778
2856
|
} | undefined;
|
|
2857
|
+
timeout?: number | undefined;
|
|
2858
|
+
statementTimeout?: number | undefined;
|
|
2779
2859
|
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
2780
2860
|
envFile?: string | undefined;
|
|
2781
2861
|
environment?: string | undefined;
|
|
2782
2862
|
} | {
|
|
2783
2863
|
system: "mongodb";
|
|
2784
|
-
|
|
2785
|
-
password?: string | {
|
|
2864
|
+
host?: string | {
|
|
2786
2865
|
$env: string;
|
|
2787
2866
|
} | undefined;
|
|
2788
|
-
|
|
2867
|
+
port?: number | {
|
|
2789
2868
|
$env: string;
|
|
2790
2869
|
} | undefined;
|
|
2791
|
-
|
|
2870
|
+
user?: string | {
|
|
2792
2871
|
$env: string;
|
|
2793
2872
|
} | undefined;
|
|
2794
|
-
|
|
2873
|
+
password?: string | {
|
|
2795
2874
|
$env: string;
|
|
2796
2875
|
} | undefined;
|
|
2797
2876
|
database?: string | {
|
|
2798
2877
|
$env: string;
|
|
2799
2878
|
} | undefined;
|
|
2879
|
+
uri?: string | {
|
|
2880
|
+
$env: string;
|
|
2881
|
+
} | undefined;
|
|
2800
2882
|
authSource?: string | {
|
|
2801
2883
|
$env: string;
|
|
2802
2884
|
} | undefined;
|
|
@@ -2805,9 +2887,8 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2805
2887
|
} | undefined;
|
|
2806
2888
|
tls?: boolean | undefined;
|
|
2807
2889
|
srv?: boolean | undefined;
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
} | undefined;
|
|
2890
|
+
timeout?: number | undefined;
|
|
2891
|
+
statementTimeout?: number | undefined;
|
|
2811
2892
|
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
2812
2893
|
envFile?: string | undefined;
|
|
2813
2894
|
environment?: string | undefined;
|
|
@@ -2819,38 +2900,40 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
|
|
|
2819
2900
|
port: number | {
|
|
2820
2901
|
$env: string;
|
|
2821
2902
|
};
|
|
2822
|
-
|
|
2823
|
-
password?: string | {
|
|
2903
|
+
user?: string | {
|
|
2824
2904
|
$env: string;
|
|
2825
2905
|
} | undefined;
|
|
2826
|
-
|
|
2906
|
+
password?: string | {
|
|
2827
2907
|
$env: string;
|
|
2828
2908
|
} | undefined;
|
|
2829
2909
|
database?: string | {
|
|
2830
2910
|
$env: string;
|
|
2831
2911
|
} | undefined;
|
|
2912
|
+
timeout?: number | undefined;
|
|
2913
|
+
statementTimeout?: number | undefined;
|
|
2832
2914
|
permission?: "admin" | "query-only" | "read-write" | "data-admin" | undefined;
|
|
2833
2915
|
envFile?: string | undefined;
|
|
2834
2916
|
environment?: string | undefined;
|
|
2835
2917
|
} | {
|
|
2836
2918
|
system: "elasticsearch";
|
|
2837
|
-
|
|
2838
|
-
password?: string | {
|
|
2919
|
+
host?: string | {
|
|
2839
2920
|
$env: string;
|
|
2840
2921
|
} | undefined;
|
|
2841
|
-
|
|
2922
|
+
port?: number | {
|
|
2842
2923
|
$env: string;
|
|
2843
2924
|
} | undefined;
|
|
2844
|
-
|
|
2925
|
+
user?: string | {
|
|
2845
2926
|
$env: string;
|
|
2846
2927
|
} | undefined;
|
|
2847
|
-
|
|
2928
|
+
password?: string | {
|
|
2848
2929
|
$env: string;
|
|
2849
2930
|
} | undefined;
|
|
2850
2931
|
database?: string | {
|
|
2851
2932
|
$env: string;
|
|
2852
2933
|
} | undefined;
|
|
2853
2934
|
rejectUnauthorized?: boolean | undefined;
|
|
2935
|
+
timeout?: number | undefined;
|
|
2936
|
+
statementTimeout?: number | undefined;
|
|
2854
2937
|
protocol?: "http" | "https" | undefined;
|
|
2855
2938
|
nodes?: string[] | undefined;
|
|
2856
2939
|
cloudId?: string | {
|
|
@@ -3010,6 +3093,10 @@ export declare class DataExecutor {
|
|
|
3010
3093
|
* Get identifier quote character (for table names and column names)
|
|
3011
3094
|
*/
|
|
3012
3095
|
private getQuoteChar;
|
|
3096
|
+
private checkBlacklist;
|
|
3097
|
+
private executeMutation;
|
|
3098
|
+
private successResult;
|
|
3099
|
+
private handleMutationError;
|
|
3013
3100
|
/**
|
|
3014
3101
|
* Build a parameterized UPDATE SQL statement
|
|
3015
3102
|
*/
|