drizzle-kit 0.20.13-1232ba2 → 0.20.14-05603dc

Sign up to get free protection for your applications and to get access to all the features.
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;