drizzle-kit 0.20.17-4e262b7 → 0.20.17-7776aba
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/bin.cjs +22248 -23435
- package/cli/commands/migrate.d.ts +135 -152
- package/cli/commands/mysqlIntrospect.d.ts +79 -15
- package/cli/commands/mysqlPushUtils.d.ts +8 -4
- package/cli/commands/mysqlUp.d.ts +4 -0
- package/cli/commands/pgConnect.d.ts +5 -0
- package/cli/commands/pgIntrospect.d.ts +76 -12
- package/cli/commands/pgPushUtils.d.ts +6 -3
- package/cli/commands/pgUp.d.ts +4 -0
- package/cli/commands/sqliteIntrospect.d.ts +29 -26
- package/cli/commands/sqlitePushUtils.d.ts +10 -4
- package/cli/commands/sqliteUtils.d.ts +162 -0
- package/cli/commands/upFolders.d.ts +27 -0
- package/cli/commands/utils.d.ts +255 -39
- package/cli/validations/common.d.ts +7 -208
- package/cli/validations/mysql.d.ts +337 -7
- package/cli/validations/outputs.d.ts +0 -1
- package/cli/validations/pg.d.ts +405 -4
- package/cli/views.d.ts +5 -7
- package/drivers/index.d.ts +39 -0
- package/global.d.ts +1 -3
- package/index.d.mts +6 -8
- package/index.d.ts +6 -8
- package/index.js +0 -1
- package/introspect-mysql.d.ts +9 -0
- package/introspect-pg.d.ts +12 -0
- package/introspect-sqlite.d.ts +2 -2
- package/jsonDiffer.d.ts +29 -14
- package/jsonStatements.d.ts +11 -38
- package/package.json +52 -24
- package/payload.d.mts +5 -5
- package/payload.d.ts +5 -5
- package/payload.js +24222 -26044
- package/payload.mjs +19956 -21767
- package/schemaValidator.d.ts +286 -289
- package/serializer/mysqlImports.d.ts +7 -3
- package/serializer/mysqlSchema.d.ts +1323 -2454
- package/serializer/mysqlSerializer.d.ts +6 -6
- package/serializer/pgImports.d.ts +2 -2
- package/serializer/pgSchema.d.ts +1283 -1742
- package/serializer/pgSerializer.d.ts +2 -2
- package/serializer/sqliteImports.d.ts +4 -2
- package/serializer/sqliteSchema.d.ts +979 -553
- package/serializer/sqliteSerializer.d.ts +4 -4
- package/snapshotsDiffer.d.ts +1209 -2486
- package/utils/words.d.ts +1 -1
- package/utils-studio.d.mts +1 -0
- package/utils-studio.d.ts +1 -0
- package/utils-studio.js +849 -7058
- package/utils-studio.mjs +829 -7035
- package/utils.d.ts +141 -14
- package/utils.js +7161 -4625
- package/utils.mjs +7121 -4585
- package/cli/utils.d.ts +0 -12
- package/cli/validations/cli.d.ts +0 -169
- package/cli/validations/sqlite.d.ts +0 -34
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
|
-
}>;
|
package/cli/validations/cli.d.ts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { TypeOf } from "zod";
|
|
2
|
-
export declare const cliConfigGenerate: import("zod").ZodObject<{
|
|
3
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
|
|
4
|
-
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
|
5
|
-
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
6
|
-
config: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
8
|
-
breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
9
|
-
custom: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
10
|
-
}, "strict", import("zod").ZodTypeAny, {
|
|
11
|
-
custom: boolean;
|
|
12
|
-
out: string;
|
|
13
|
-
breakpoints: boolean;
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
schema?: string | string[] | undefined;
|
|
16
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
|
17
|
-
config?: string | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
name?: string | undefined;
|
|
20
|
-
custom?: boolean | undefined;
|
|
21
|
-
schema?: string | string[] | undefined;
|
|
22
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
|
23
|
-
config?: string | undefined;
|
|
24
|
-
out?: string | undefined;
|
|
25
|
-
breakpoints?: boolean | undefined;
|
|
26
|
-
}>;
|
|
27
|
-
export type CliConfigGenerate = TypeOf<typeof cliConfigGenerate>;
|
|
28
|
-
export declare const pushParams: import("zod").ZodObject<{
|
|
29
|
-
dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
|
|
30
|
-
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
|
31
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
|
32
|
-
schemaFilters: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
|
|
33
|
-
driver: import("zod").ZodString;
|
|
34
|
-
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
-
uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
-
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
|
-
host: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
|
-
port: import("zod").ZodOptional<import("zod").ZodString>;
|
|
39
|
-
user: import("zod").ZodOptional<import("zod").ZodString>;
|
|
40
|
-
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
41
|
-
database: import("zod").ZodOptional<import("zod").ZodString>;
|
|
42
|
-
ssl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
43
|
-
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
-
verbose: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
45
|
-
strict: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
46
|
-
}, "strict", import("zod").ZodTypeAny, {
|
|
47
|
-
dialect: "mysql" | "pg" | "sqlite";
|
|
48
|
-
driver: string;
|
|
49
|
-
schemaFilters: string | string[];
|
|
50
|
-
strict?: boolean | undefined;
|
|
51
|
-
schema?: string | string[] | undefined;
|
|
52
|
-
url?: string | undefined;
|
|
53
|
-
tablesFilter?: string | string[] | undefined;
|
|
54
|
-
verbose?: boolean | undefined;
|
|
55
|
-
host?: string | undefined;
|
|
56
|
-
port?: string | undefined;
|
|
57
|
-
user?: string | undefined;
|
|
58
|
-
password?: string | undefined;
|
|
59
|
-
database?: string | undefined;
|
|
60
|
-
connectionString?: string | undefined;
|
|
61
|
-
uri?: string | undefined;
|
|
62
|
-
ssl?: string | undefined;
|
|
63
|
-
authToken?: string | undefined;
|
|
64
|
-
}, {
|
|
65
|
-
dialect: "mysql" | "pg" | "sqlite";
|
|
66
|
-
driver: string;
|
|
67
|
-
strict?: boolean | undefined;
|
|
68
|
-
schema?: string | string[] | undefined;
|
|
69
|
-
url?: string | undefined;
|
|
70
|
-
tablesFilter?: string | string[] | undefined;
|
|
71
|
-
verbose?: boolean | undefined;
|
|
72
|
-
host?: string | undefined;
|
|
73
|
-
port?: string | undefined;
|
|
74
|
-
user?: string | undefined;
|
|
75
|
-
password?: string | undefined;
|
|
76
|
-
database?: string | undefined;
|
|
77
|
-
connectionString?: string | undefined;
|
|
78
|
-
schemaFilters?: string | string[] | undefined;
|
|
79
|
-
uri?: string | undefined;
|
|
80
|
-
ssl?: string | undefined;
|
|
81
|
-
authToken?: string | undefined;
|
|
82
|
-
}>;
|
|
83
|
-
export type PushParams = TypeOf<typeof pushParams>;
|
|
84
|
-
export declare const pullParams: import("zod").ZodObject<{
|
|
85
|
-
config: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
|
|
87
|
-
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
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").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
|
|
90
|
-
driver: import("zod").ZodOptional<import("zod").ZodString>;
|
|
91
|
-
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
|
92
|
-
uri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
|
-
host: import("zod").ZodOptional<import("zod").ZodString>;
|
|
94
|
-
port: import("zod").ZodOptional<import("zod").ZodString>;
|
|
95
|
-
user: import("zod").ZodOptional<import("zod").ZodString>;
|
|
96
|
-
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
-
database: import("zod").ZodOptional<import("zod").ZodString>;
|
|
98
|
-
ssl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
99
|
-
url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
100
|
-
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
|
101
|
-
"introspect-casing": import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
|
102
|
-
breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
103
|
-
}, "strict", import("zod").ZodTypeAny, {
|
|
104
|
-
out: string;
|
|
105
|
-
breakpoints: boolean;
|
|
106
|
-
schemaFilter: string | string[];
|
|
107
|
-
"introspect-casing": "camel" | "preserve";
|
|
108
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
|
109
|
-
url?: string | undefined;
|
|
110
|
-
config?: string | undefined;
|
|
111
|
-
driver?: string | undefined;
|
|
112
|
-
tablesFilter?: string | string[] | undefined;
|
|
113
|
-
host?: string | undefined;
|
|
114
|
-
port?: string | undefined;
|
|
115
|
-
user?: string | undefined;
|
|
116
|
-
password?: string | undefined;
|
|
117
|
-
database?: string | undefined;
|
|
118
|
-
connectionString?: string | undefined;
|
|
119
|
-
uri?: string | undefined;
|
|
120
|
-
ssl?: string | undefined;
|
|
121
|
-
authToken?: string | undefined;
|
|
122
|
-
}, {
|
|
123
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
|
124
|
-
url?: string | undefined;
|
|
125
|
-
config?: string | undefined;
|
|
126
|
-
out?: string | undefined;
|
|
127
|
-
breakpoints?: boolean | undefined;
|
|
128
|
-
driver?: string | undefined;
|
|
129
|
-
tablesFilter?: string | string[] | undefined;
|
|
130
|
-
schemaFilter?: string | string[] | undefined;
|
|
131
|
-
host?: string | undefined;
|
|
132
|
-
port?: string | undefined;
|
|
133
|
-
user?: string | undefined;
|
|
134
|
-
password?: string | undefined;
|
|
135
|
-
database?: string | undefined;
|
|
136
|
-
connectionString?: string | undefined;
|
|
137
|
-
uri?: string | undefined;
|
|
138
|
-
ssl?: string | undefined;
|
|
139
|
-
authToken?: string | undefined;
|
|
140
|
-
"introspect-casing"?: "camel" | "preserve" | undefined;
|
|
141
|
-
}>;
|
|
142
|
-
export type PullParams = TypeOf<typeof pullParams>;
|
|
143
|
-
export declare const configCheck: import("zod").ZodObject<{
|
|
144
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
|
|
145
|
-
out: import("zod").ZodOptional<import("zod").ZodString>;
|
|
146
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
147
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
|
148
|
-
out?: string | undefined;
|
|
149
|
-
}, {
|
|
150
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
|
151
|
-
out?: string | undefined;
|
|
152
|
-
}>;
|
|
153
|
-
export declare const cliConfigCheck: import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
154
|
-
config: import("zod").ZodOptional<import("zod").ZodString>;
|
|
155
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
156
|
-
config?: string | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
config?: string | undefined;
|
|
159
|
-
}>, import("zod").ZodObject<{
|
|
160
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["pg", "mysql", "sqlite"]>>;
|
|
161
|
-
out: import("zod").ZodOptional<import("zod").ZodString>;
|
|
162
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
163
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
|
164
|
-
out?: string | undefined;
|
|
165
|
-
}, {
|
|
166
|
-
dialect?: "mysql" | "pg" | "sqlite" | undefined;
|
|
167
|
-
out?: string | undefined;
|
|
168
|
-
}>>;
|
|
169
|
-
export type CliCheckConfig = TypeOf<typeof cliConfigCheck>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { TypeOf } from "zod";
|
|
2
|
-
export declare const sqliteCredentials: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
3
|
-
driver: import("zod").ZodLiteral<"turso">;
|
|
4
|
-
url: import("zod").ZodString;
|
|
5
|
-
authToken: import("zod").ZodString;
|
|
6
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
7
|
-
url: string;
|
|
8
|
-
driver: "turso";
|
|
9
|
-
authToken: string;
|
|
10
|
-
}, {
|
|
11
|
-
url: string;
|
|
12
|
-
driver: "turso";
|
|
13
|
-
authToken: string;
|
|
14
|
-
}>, import("zod").ZodObject<{
|
|
15
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
|
16
|
-
url: import("zod").ZodString;
|
|
17
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
18
|
-
url: string;
|
|
19
|
-
driver: "better-sqlite";
|
|
20
|
-
}, {
|
|
21
|
-
url: string;
|
|
22
|
-
driver: "better-sqlite";
|
|
23
|
-
}>, import("zod").ZodObject<{
|
|
24
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
|
25
|
-
url: import("zod").ZodString;
|
|
26
|
-
}, "strip", import("zod").ZodTypeAny, {
|
|
27
|
-
url: string;
|
|
28
|
-
driver: "libsql";
|
|
29
|
-
}, {
|
|
30
|
-
url: string;
|
|
31
|
-
driver: "libsql";
|
|
32
|
-
}>]>;
|
|
33
|
-
export type SqliteCredentials = TypeOf<typeof sqliteCredentials>;
|
|
34
|
-
export declare const printConfigConnectionIssues: (options: Record<string, unknown>) => void;
|