drizzle-kit 0.20.14-f5f86f6 → 0.20.14-fa7577a
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +2397 -2184
- package/cli/commands/migrate.d.ts +7 -7
- package/cli/commands/mysqlPushUtils.d.ts +2 -2
- package/cli/commands/mysqlUp.d.ts +1 -1
- package/cli/commands/pgConnect.d.ts +1 -1
- package/cli/commands/pgIntrospect.d.ts +1 -1
- package/cli/commands/pgPushUtils.d.ts +2 -2
- package/cli/commands/pgUp.d.ts +1 -1
- package/cli/commands/sqlitePushUtils.d.ts +3 -3
- package/cli/commands/upFolders.d.ts +1 -1
- package/cli/commands/utils.d.ts +2 -11
- package/cli/validations/common.d.ts +1 -1
- package/cli/views.d.ts +1 -1
- package/package.json +1 -1
- package/payload.js +68 -276
- package/payload.mjs +68 -276
- package/schemaValidator.d.ts +1 -1
- package/serializer/mysqlSerializer.d.ts +2 -2
- package/serializer/sqliteSerializer.d.ts +2 -2
- package/utils-studio.js +17 -21
- package/utils-studio.mjs +13 -17
- package/utils.js +12 -26
- package/utils.mjs +12 -26
- package/cli/commands/check.d.ts +0 -2
- package/cli/commands/drop.d.ts +0 -4
- package/cli/commands/push.d.ts +0 -6
- package/cli/commands/sqliteUp.d.ts +0 -2
- package/cli/index.d.ts +0 -71
- package/cli/utils.d.ts +0 -12
- package/cli/validations/sqlite.d.ts +0 -220
- package/cli/validations/studio.d.ts +0 -593
- package/orm-extenstions/d1-driver/driver.d.ts +0 -8
- package/orm-extenstions/d1-driver/session.d.ts +0 -51
- package/orm-extenstions/d1-driver/wrangler-client.d.ts +0 -3
- package/serializer/studioUtils.d.ts +0 -65
- package/utils/certs.d.ts +0 -4
package/utils.js
CHANGED
@@ -1086,22 +1086,6 @@ var init_views = __esm({
|
|
1086
1086
|
}
|
1087
1087
|
});
|
1088
1088
|
|
1089
|
-
// src/global.ts
|
1090
|
-
var originUUID, snapshotVersion, mapValues;
|
1091
|
-
var init_global = __esm({
|
1092
|
-
"src/global.ts"() {
|
1093
|
-
originUUID = "00000000-0000-0000-0000-000000000000";
|
1094
|
-
snapshotVersion = "5";
|
1095
|
-
mapValues = (obj, map) => {
|
1096
|
-
const result = Object.keys(obj).reduce(function(result2, key) {
|
1097
|
-
result2[key] = map(obj[key]);
|
1098
|
-
return result2;
|
1099
|
-
}, {});
|
1100
|
-
return result;
|
1101
|
-
};
|
1102
|
-
}
|
1103
|
-
});
|
1104
|
-
|
1105
1089
|
// node_modules/.pnpm/zod@3.20.2/node_modules/zod/lib/index.mjs
|
1106
1090
|
function getErrorMap() {
|
1107
1091
|
return overrideErrorMap;
|
@@ -4278,8 +4262,18 @@ module.exports = __toCommonJS(utils_exports);
|
|
4278
4262
|
var import_fs = require("fs");
|
4279
4263
|
init_views();
|
4280
4264
|
|
4265
|
+
// src/global.ts
|
4266
|
+
var originUUID = "00000000-0000-0000-0000-000000000000";
|
4267
|
+
var snapshotVersion = "5";
|
4268
|
+
var mapValues = (obj, map) => {
|
4269
|
+
const result = Object.keys(obj).reduce(function(result2, key) {
|
4270
|
+
result2[key] = map(obj[key]);
|
4271
|
+
return result2;
|
4272
|
+
}, {});
|
4273
|
+
return result;
|
4274
|
+
};
|
4275
|
+
|
4281
4276
|
// src/serializer/mysqlSchema.ts
|
4282
|
-
init_global();
|
4283
4277
|
init_lib();
|
4284
4278
|
var index = objectType({
|
4285
4279
|
name: stringType(),
|
@@ -4484,7 +4478,6 @@ var dryMySql = mysqlSchema.parse({
|
|
4484
4478
|
});
|
4485
4479
|
|
4486
4480
|
// src/serializer/pgSchema.ts
|
4487
|
-
init_global();
|
4488
4481
|
init_lib();
|
4489
4482
|
var indexV2 = objectType({
|
4490
4483
|
name: stringType(),
|
@@ -4811,7 +4804,6 @@ var dryPg = pgSchema.parse({
|
|
4811
4804
|
});
|
4812
4805
|
|
4813
4806
|
// src/serializer/sqliteSchema.ts
|
4814
|
-
init_global();
|
4815
4807
|
init_lib();
|
4816
4808
|
var index3 = objectType({
|
4817
4809
|
name: stringType(),
|
@@ -4968,16 +4960,11 @@ var drySQLite = schema2.parse({
|
|
4968
4960
|
columns: {}
|
4969
4961
|
}
|
4970
4962
|
});
|
4971
|
-
var backwardCompatibleSqliteSchema = unionType([
|
4972
|
-
schemaV32,
|
4973
|
-
schemaV42,
|
4974
|
-
schema2
|
4975
|
-
]);
|
4963
|
+
var backwardCompatibleSqliteSchema = unionType([schemaV32, schemaV42, schema2]);
|
4976
4964
|
|
4977
4965
|
// src/utils.ts
|
4978
4966
|
init_source();
|
4979
4967
|
var import_path = require("path");
|
4980
|
-
init_global();
|
4981
4968
|
|
4982
4969
|
// src/jsonDiffer.js
|
4983
4970
|
var import_json_diff = require("json-diff");
|
@@ -7724,7 +7711,6 @@ var applySnapshotsDiff = async (json1, json2, dialect3, schemasResolver, tablesR
|
|
7724
7711
|
|
7725
7712
|
// src/cli/commands/pgUp.ts
|
7726
7713
|
init_source();
|
7727
|
-
init_global();
|
7728
7714
|
|
7729
7715
|
// src/cli/commands/mysqlUp.ts
|
7730
7716
|
init_source();
|
package/utils.mjs
CHANGED
@@ -1088,22 +1088,6 @@ var init_views = __esm({
|
|
1088
1088
|
}
|
1089
1089
|
});
|
1090
1090
|
|
1091
|
-
// src/global.ts
|
1092
|
-
var originUUID, snapshotVersion, mapValues;
|
1093
|
-
var init_global = __esm({
|
1094
|
-
"src/global.ts"() {
|
1095
|
-
originUUID = "00000000-0000-0000-0000-000000000000";
|
1096
|
-
snapshotVersion = "5";
|
1097
|
-
mapValues = (obj, map) => {
|
1098
|
-
const result = Object.keys(obj).reduce(function(result2, key) {
|
1099
|
-
result2[key] = map(obj[key]);
|
1100
|
-
return result2;
|
1101
|
-
}, {});
|
1102
|
-
return result;
|
1103
|
-
};
|
1104
|
-
}
|
1105
|
-
});
|
1106
|
-
|
1107
1091
|
// node_modules/.pnpm/zod@3.20.2/node_modules/zod/lib/index.mjs
|
1108
1092
|
function getErrorMap() {
|
1109
1093
|
return overrideErrorMap;
|
@@ -4269,8 +4253,18 @@ import {
|
|
4269
4253
|
writeFileSync
|
4270
4254
|
} from "fs";
|
4271
4255
|
|
4256
|
+
// src/global.ts
|
4257
|
+
var originUUID = "00000000-0000-0000-0000-000000000000";
|
4258
|
+
var snapshotVersion = "5";
|
4259
|
+
var mapValues = (obj, map) => {
|
4260
|
+
const result = Object.keys(obj).reduce(function(result2, key) {
|
4261
|
+
result2[key] = map(obj[key]);
|
4262
|
+
return result2;
|
4263
|
+
}, {});
|
4264
|
+
return result;
|
4265
|
+
};
|
4266
|
+
|
4272
4267
|
// src/serializer/mysqlSchema.ts
|
4273
|
-
init_global();
|
4274
4268
|
init_lib();
|
4275
4269
|
var index = objectType({
|
4276
4270
|
name: stringType(),
|
@@ -4475,7 +4469,6 @@ var dryMySql = mysqlSchema.parse({
|
|
4475
4469
|
});
|
4476
4470
|
|
4477
4471
|
// src/serializer/pgSchema.ts
|
4478
|
-
init_global();
|
4479
4472
|
init_lib();
|
4480
4473
|
var indexV2 = objectType({
|
4481
4474
|
name: stringType(),
|
@@ -4802,7 +4795,6 @@ var dryPg = pgSchema.parse({
|
|
4802
4795
|
});
|
4803
4796
|
|
4804
4797
|
// src/serializer/sqliteSchema.ts
|
4805
|
-
init_global();
|
4806
4798
|
init_lib();
|
4807
4799
|
var index3 = objectType({
|
4808
4800
|
name: stringType(),
|
@@ -4959,15 +4951,10 @@ var drySQLite = schema2.parse({
|
|
4959
4951
|
columns: {}
|
4960
4952
|
}
|
4961
4953
|
});
|
4962
|
-
var backwardCompatibleSqliteSchema = unionType([
|
4963
|
-
schemaV32,
|
4964
|
-
schemaV42,
|
4965
|
-
schema2
|
4966
|
-
]);
|
4954
|
+
var backwardCompatibleSqliteSchema = unionType([schemaV32, schemaV42, schema2]);
|
4967
4955
|
|
4968
4956
|
// src/utils.ts
|
4969
4957
|
init_source();
|
4970
|
-
init_global();
|
4971
4958
|
import { join } from "path";
|
4972
4959
|
|
4973
4960
|
// src/jsonDiffer.js
|
@@ -7715,7 +7702,6 @@ var applySnapshotsDiff = async (json1, json2, dialect3, schemasResolver, tablesR
|
|
7715
7702
|
|
7716
7703
|
// src/cli/commands/pgUp.ts
|
7717
7704
|
init_source();
|
7718
|
-
init_global();
|
7719
7705
|
|
7720
7706
|
// src/cli/commands/mysqlUp.ts
|
7721
7707
|
init_source();
|
package/cli/commands/check.d.ts
DELETED
package/cli/commands/drop.d.ts
DELETED
package/cli/commands/push.d.ts
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
import { MySQLPushConfig } from "../validations/mysql";
|
2
|
-
import { PgPushConfig } from "../validations/pg";
|
3
|
-
import { SQLitePushConfig } from "../validations/sqlite";
|
4
|
-
export declare const mysqlPush: (drizzleConfig: MySQLPushConfig, tablesFilter: string[]) => Promise<void>;
|
5
|
-
export declare const pgPush: (drizzleConfig: PgPushConfig, tablesFilter: string[]) => Promise<void>;
|
6
|
-
export declare const sqlitePush: (drizzleConfig: SQLitePushConfig, tablesFilter: string[]) => Promise<void>;
|
package/cli/index.d.ts
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
import { TypeOf } from "zod";
|
2
|
-
import "../@types/utils";
|
3
|
-
import "dotenv/config";
|
4
|
-
declare const cliParamsPush: import("zod").ZodObject<{
|
5
|
-
config: import("zod").ZodOptional<import("zod").ZodString>;
|
6
|
-
dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
|
7
|
-
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
8
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
9
|
-
driver: import("zod").ZodString;
|
10
|
-
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
11
|
-
host: import("zod").ZodOptional<import("zod").ZodString>;
|
12
|
-
port: import("zod").ZodOptional<import("zod").ZodString>;
|
13
|
-
user: import("zod").ZodOptional<import("zod").ZodString>;
|
14
|
-
password: import("zod").ZodOptional<import("zod").ZodString>;
|
15
|
-
database: import("zod").ZodOptional<import("zod").ZodString>;
|
16
|
-
ssl: import("zod").ZodOptional<import("zod").ZodString>;
|
17
|
-
uri: import("zod").ZodOptional<import("zod").ZodString>;
|
18
|
-
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
19
|
-
verbose: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
20
|
-
strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
21
|
-
}, "strict", import("zod").ZodTypeAny, {
|
22
|
-
schema?: string | string[] | undefined;
|
23
|
-
authToken?: string | undefined;
|
24
|
-
tablesFilter?: string | string[] | undefined;
|
25
|
-
config?: string | undefined;
|
26
|
-
host?: string | undefined;
|
27
|
-
port?: string | undefined;
|
28
|
-
user?: string | undefined;
|
29
|
-
password?: string | undefined;
|
30
|
-
database?: string | undefined;
|
31
|
-
ssl?: string | undefined;
|
32
|
-
connectionString?: string | undefined;
|
33
|
-
uri?: string | undefined;
|
34
|
-
strict: boolean;
|
35
|
-
dialect: "pg" | "mysql" | "sqlite";
|
36
|
-
driver: string;
|
37
|
-
verbose: boolean;
|
38
|
-
}, {
|
39
|
-
strict?: boolean | undefined;
|
40
|
-
schema?: string | string[] | undefined;
|
41
|
-
authToken?: string | undefined;
|
42
|
-
tablesFilter?: string | string[] | undefined;
|
43
|
-
config?: string | undefined;
|
44
|
-
verbose?: boolean | undefined;
|
45
|
-
host?: string | undefined;
|
46
|
-
port?: string | undefined;
|
47
|
-
user?: string | undefined;
|
48
|
-
password?: string | undefined;
|
49
|
-
database?: string | undefined;
|
50
|
-
ssl?: string | undefined;
|
51
|
-
connectionString?: string | undefined;
|
52
|
-
uri?: string | undefined;
|
53
|
-
dialect: "pg" | "mysql" | "sqlite";
|
54
|
-
driver: string;
|
55
|
-
}>;
|
56
|
-
export type CliParamsPush = TypeOf<typeof cliParamsPush>;
|
57
|
-
export declare const checkSchema: import("zod").ZodObject<{
|
58
|
-
out: import("zod").ZodOptional<import("zod").ZodString>;
|
59
|
-
config: import("zod").ZodOptional<import("zod").ZodString>;
|
60
|
-
driver: import("zod").ZodOptional<import("zod").ZodString>;
|
61
|
-
}, "strict", import("zod").ZodTypeAny, {
|
62
|
-
out?: string | undefined;
|
63
|
-
driver?: string | undefined;
|
64
|
-
config?: string | undefined;
|
65
|
-
}, {
|
66
|
-
out?: string | undefined;
|
67
|
-
driver?: string | undefined;
|
68
|
-
config?: string | undefined;
|
69
|
-
}>;
|
70
|
-
export type CheckConfig = TypeOf<typeof checkSchema>;
|
71
|
-
export {};
|
package/cli/utils.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
export declare const assertExists: (it?: any) => void;
|
2
|
-
export declare const assertStudioNodeVersion: () => void;
|
3
|
-
export declare const assertPackages: (...pkgs: string[]) => Promise<void>;
|
4
|
-
export declare const assertEitherPackage: (...pkgs: string[]) => Promise<string[]>;
|
5
|
-
export declare const assertOrmCoreVersion: () => Promise<void>;
|
6
|
-
export declare const ormCoreVersions: () => Promise<{
|
7
|
-
compatibilityVersion: number;
|
8
|
-
npmVersion: string;
|
9
|
-
} | {
|
10
|
-
compatibilityVersion?: undefined;
|
11
|
-
npmVersion?: undefined;
|
12
|
-
}>;
|
@@ -1,220 +0,0 @@
|
|
1
|
-
import { TypeOf } from "zod";
|
2
|
-
import { SQLiteCliConfig } from "../commands/sqliteUtils";
|
3
|
-
export declare const sqliteConnectionCli: import("zod").ZodUnion<[import("zod").ZodObject<{
|
4
|
-
driver: import("zod").ZodLiteral<"turso">;
|
5
|
-
url: import("zod").ZodString;
|
6
|
-
authToken: import("zod").ZodString;
|
7
|
-
}, "strip", import("zod").ZodTypeAny, {
|
8
|
-
url: string;
|
9
|
-
driver: "turso";
|
10
|
-
authToken: string;
|
11
|
-
}, {
|
12
|
-
url: string;
|
13
|
-
driver: "turso";
|
14
|
-
authToken: string;
|
15
|
-
}>, import("zod").ZodObject<{
|
16
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
17
|
-
url: import("zod").ZodString;
|
18
|
-
}, "strip", import("zod").ZodTypeAny, {
|
19
|
-
url: string;
|
20
|
-
driver: "better-sqlite";
|
21
|
-
}, {
|
22
|
-
url: string;
|
23
|
-
driver: "better-sqlite";
|
24
|
-
}>, import("zod").ZodObject<{
|
25
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
26
|
-
url: import("zod").ZodString;
|
27
|
-
}, "strip", import("zod").ZodTypeAny, {
|
28
|
-
url: string;
|
29
|
-
driver: "libsql";
|
30
|
-
}, {
|
31
|
-
url: string;
|
32
|
-
driver: "libsql";
|
33
|
-
}>]>;
|
34
|
-
export declare const sqliteCliIntrospectParams: import("zod").ZodIntersection<import("zod").ZodObject<{
|
35
|
-
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
36
|
-
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
37
|
-
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
38
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
39
|
-
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
40
|
-
introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
41
|
-
}, "strip", import("zod").ZodTypeAny, {
|
42
|
-
schema?: string | string[] | undefined;
|
43
|
-
tablesFilter?: string | string[] | undefined;
|
44
|
-
out: string;
|
45
|
-
breakpoints: boolean;
|
46
|
-
schemaFilter: string | string[];
|
47
|
-
introspectCasing: "camel" | "preserve";
|
48
|
-
}, {
|
49
|
-
schema?: string | string[] | undefined;
|
50
|
-
out?: string | undefined;
|
51
|
-
breakpoints?: boolean | undefined;
|
52
|
-
tablesFilter?: string | string[] | undefined;
|
53
|
-
schemaFilter?: string | string[] | undefined;
|
54
|
-
introspectCasing?: "camel" | "preserve" | undefined;
|
55
|
-
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
56
|
-
driver: import("zod").ZodLiteral<"turso">;
|
57
|
-
url: import("zod").ZodString;
|
58
|
-
authToken: import("zod").ZodString;
|
59
|
-
}, "strip", import("zod").ZodTypeAny, {
|
60
|
-
url: string;
|
61
|
-
driver: "turso";
|
62
|
-
authToken: string;
|
63
|
-
}, {
|
64
|
-
url: string;
|
65
|
-
driver: "turso";
|
66
|
-
authToken: string;
|
67
|
-
}>, import("zod").ZodObject<{
|
68
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
69
|
-
url: import("zod").ZodString;
|
70
|
-
}, "strip", import("zod").ZodTypeAny, {
|
71
|
-
url: string;
|
72
|
-
driver: "better-sqlite";
|
73
|
-
}, {
|
74
|
-
url: string;
|
75
|
-
driver: "better-sqlite";
|
76
|
-
}>, import("zod").ZodObject<{
|
77
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
78
|
-
url: import("zod").ZodString;
|
79
|
-
}, "strip", import("zod").ZodTypeAny, {
|
80
|
-
url: string;
|
81
|
-
driver: "libsql";
|
82
|
-
}, {
|
83
|
-
url: string;
|
84
|
-
driver: "libsql";
|
85
|
-
}>]>>;
|
86
|
-
export declare const sqliteCliPushParams: import("zod").ZodIntersection<import("zod").ZodObject<{
|
87
|
-
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
88
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
89
|
-
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
90
|
-
verbose: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
91
|
-
strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
92
|
-
}, "strip", import("zod").ZodTypeAny, {
|
93
|
-
tablesFilter?: string | string[] | undefined;
|
94
|
-
strict: boolean;
|
95
|
-
schema: string | string[];
|
96
|
-
schemaFilter: string | string[];
|
97
|
-
verbose: boolean;
|
98
|
-
}, {
|
99
|
-
strict?: boolean | undefined;
|
100
|
-
tablesFilter?: string | string[] | undefined;
|
101
|
-
schemaFilter?: string | string[] | undefined;
|
102
|
-
verbose?: boolean | undefined;
|
103
|
-
schema: string | string[];
|
104
|
-
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
105
|
-
driver: import("zod").ZodLiteral<"turso">;
|
106
|
-
url: import("zod").ZodString;
|
107
|
-
authToken: import("zod").ZodString;
|
108
|
-
}, "strip", import("zod").ZodTypeAny, {
|
109
|
-
url: string;
|
110
|
-
driver: "turso";
|
111
|
-
authToken: string;
|
112
|
-
}, {
|
113
|
-
url: string;
|
114
|
-
driver: "turso";
|
115
|
-
authToken: string;
|
116
|
-
}>, import("zod").ZodObject<{
|
117
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
118
|
-
url: import("zod").ZodString;
|
119
|
-
}, "strip", import("zod").ZodTypeAny, {
|
120
|
-
url: string;
|
121
|
-
driver: "better-sqlite";
|
122
|
-
}, {
|
123
|
-
url: string;
|
124
|
-
driver: "better-sqlite";
|
125
|
-
}>, import("zod").ZodObject<{
|
126
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
127
|
-
url: import("zod").ZodString;
|
128
|
-
}, "strip", import("zod").ZodTypeAny, {
|
129
|
-
url: string;
|
130
|
-
driver: "libsql";
|
131
|
-
}, {
|
132
|
-
url: string;
|
133
|
-
driver: "libsql";
|
134
|
-
}>]>>;
|
135
|
-
export declare const sqliteConfigPushParams: import("zod").ZodIntersection<import("zod").ZodObject<{
|
136
|
-
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
137
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
138
|
-
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
139
|
-
verbose: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
140
|
-
strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
141
|
-
}, "strip", import("zod").ZodTypeAny, {
|
142
|
-
tablesFilter?: string | string[] | undefined;
|
143
|
-
strict: boolean;
|
144
|
-
schema: string | string[];
|
145
|
-
schemaFilter: string | string[];
|
146
|
-
verbose: boolean;
|
147
|
-
}, {
|
148
|
-
strict?: boolean | undefined;
|
149
|
-
tablesFilter?: string | string[] | undefined;
|
150
|
-
schemaFilter?: string | string[] | undefined;
|
151
|
-
verbose?: boolean | undefined;
|
152
|
-
schema: string | string[];
|
153
|
-
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
154
|
-
driver: import("zod").ZodLiteral<"turso">;
|
155
|
-
dbCredentials: import("zod").ZodObject<{
|
156
|
-
url: import("zod").ZodString;
|
157
|
-
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
158
|
-
}, "strip", import("zod").ZodTypeAny, {
|
159
|
-
authToken?: string | undefined;
|
160
|
-
url: string;
|
161
|
-
}, {
|
162
|
-
authToken?: string | undefined;
|
163
|
-
url: string;
|
164
|
-
}>;
|
165
|
-
}, "strip", import("zod").ZodTypeAny, {
|
166
|
-
driver: "turso";
|
167
|
-
dbCredentials: {
|
168
|
-
authToken?: string | undefined;
|
169
|
-
url: string;
|
170
|
-
};
|
171
|
-
}, {
|
172
|
-
driver: "turso";
|
173
|
-
dbCredentials: {
|
174
|
-
authToken?: string | undefined;
|
175
|
-
url: string;
|
176
|
-
};
|
177
|
-
}>, import("zod").ZodObject<{
|
178
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
179
|
-
dbCredentials: import("zod").ZodObject<{
|
180
|
-
url: import("zod").ZodString;
|
181
|
-
}, "strip", import("zod").ZodTypeAny, {
|
182
|
-
url: string;
|
183
|
-
}, {
|
184
|
-
url: string;
|
185
|
-
}>;
|
186
|
-
}, "strip", import("zod").ZodTypeAny, {
|
187
|
-
driver: "libsql";
|
188
|
-
dbCredentials: {
|
189
|
-
url: string;
|
190
|
-
};
|
191
|
-
}, {
|
192
|
-
driver: "libsql";
|
193
|
-
dbCredentials: {
|
194
|
-
url: string;
|
195
|
-
};
|
196
|
-
}>, import("zod").ZodObject<{
|
197
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
198
|
-
dbCredentials: import("zod").ZodObject<{
|
199
|
-
url: import("zod").ZodString;
|
200
|
-
}, "strip", import("zod").ZodTypeAny, {
|
201
|
-
url: string;
|
202
|
-
}, {
|
203
|
-
url: string;
|
204
|
-
}>;
|
205
|
-
}, "strip", import("zod").ZodTypeAny, {
|
206
|
-
driver: "better-sqlite";
|
207
|
-
dbCredentials: {
|
208
|
-
url: string;
|
209
|
-
};
|
210
|
-
}, {
|
211
|
-
driver: "better-sqlite";
|
212
|
-
dbCredentials: {
|
213
|
-
url: string;
|
214
|
-
};
|
215
|
-
}>]>>;
|
216
|
-
export type SQLitePushConfig = TypeOf<typeof sqliteConfigPushParams>;
|
217
|
-
export declare const printConfigConnectionIssues: (options: any) => void;
|
218
|
-
export declare const validateIntrospect: (options: Record<string, any>) => Promise<SQLiteCliConfig>;
|
219
|
-
export declare const validatePush: (options: Record<string, unknown>) => Promise<SQLitePushConfig>;
|
220
|
-
export declare const validateGenerate: () => void;
|