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