drizzle-kit 0.20.14-95be75d → 0.20.14-a77266f

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/bin.cjs +41607 -41369
  2. package/cli/commands/migrate.d.ts +7 -7
  3. package/cli/commands/mysqlIntrospect.d.ts +3 -3
  4. package/cli/commands/mysqlPushUtils.d.ts +4 -4
  5. package/cli/commands/mysqlUp.d.ts +1 -1
  6. package/cli/commands/pgConnect.d.ts +1 -1
  7. package/cli/commands/pgIntrospect.d.ts +1 -1
  8. package/cli/commands/pgPushUtils.d.ts +2 -2
  9. package/cli/commands/pgUp.d.ts +1 -1
  10. package/cli/commands/sqlitePushUtils.d.ts +3 -3
  11. package/cli/commands/upFolders.d.ts +1 -1
  12. package/cli/commands/utils.d.ts +2 -11
  13. package/cli/validations/common.d.ts +1 -1
  14. package/cli/views.d.ts +1 -1
  15. package/drivers/index.d.ts +14 -0
  16. package/global.d.ts +1 -0
  17. package/package.json +15 -3
  18. package/payload.d.mts +33 -0
  19. package/payload.d.ts +33 -0
  20. package/payload.js +36792 -0
  21. package/payload.mjs +36811 -0
  22. package/schemaValidator.d.ts +1 -1
  23. package/serializer/mysqlImports.d.ts +5 -0
  24. package/serializer/mysqlSerializer.d.ts +4 -4
  25. package/serializer/sqliteImports.d.ts +4 -0
  26. package/serializer/sqliteSerializer.d.ts +2 -2
  27. package/utils-studio.js +7 -12
  28. package/utils-studio.mjs +7 -12
  29. package/utils.d.ts +1 -15
  30. package/utils.js +3631 -55067
  31. package/utils.mjs +8062 -0
  32. package/cli/commands/check.d.ts +0 -2
  33. package/cli/commands/drop.d.ts +0 -4
  34. package/cli/commands/push.d.ts +0 -6
  35. package/cli/commands/sqliteUp.d.ts +0 -2
  36. package/cli/index.d.ts +0 -71
  37. package/cli/utils.d.ts +0 -12
  38. package/cli/validations/sqlite.d.ts +0 -220
  39. package/cli/validations/studio.d.ts +0 -593
  40. package/orm-extenstions/d1-driver/driver.d.ts +0 -8
  41. package/orm-extenstions/d1-driver/session.d.ts +0 -51
  42. package/orm-extenstions/d1-driver/wrangler-client.d.ts +0 -3
  43. package/serializer/studioUtils.d.ts +0 -65
  44. package/utils/certs.d.ts +0 -4
@@ -1,2 +0,0 @@
1
- import { Dialect } from "../../schemaValidator";
2
- export declare const checkHandler: (out: string, dialect: Dialect) => void;
@@ -1,4 +0,0 @@
1
- export declare const dropMigration: ({ out, bundle, }: {
2
- out: string;
3
- bundle?: boolean | undefined;
4
- }) => Promise<void>;
@@ -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>;
@@ -1,2 +0,0 @@
1
- export declare const upSqliteHandler: (out: string) => void;
2
- export declare const upSqliteHandlerV4: (out: string) => 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;