drizzle-kit 0.20.14-1ebe0ff → 0.20.14-1f99bf7
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +46606 -46728
- package/cli/commands/migrate.d.ts +24 -24
- package/cli/commands/mysqlIntrospect.d.ts +119 -0
- package/cli/commands/mysqlPushUtils.d.ts +18 -0
- package/cli/commands/mysqlUp.d.ts +2 -2
- package/cli/commands/pgConnect.d.ts +1 -1
- package/cli/commands/pgIntrospect.d.ts +9 -9
- package/cli/commands/pgPushUtils.d.ts +2 -2
- package/cli/commands/pgUp.d.ts +2 -2
- package/cli/commands/sqliteIntrospect.d.ts +9 -9
- package/cli/commands/sqlitePushUtils.d.ts +21 -0
- package/cli/commands/upFolders.d.ts +1 -1
- package/cli/commands/utils.d.ts +14 -259
- package/cli/validations/cli.d.ts +104 -0
- package/cli/validations/common.d.ts +205 -7
- package/cli/validations/mysql.d.ts +6 -1
- package/cli/validations/pg.d.ts +6 -1
- package/cli/validations/sqlite.d.ts +165 -3
- package/cli/views.d.ts +1 -1
- package/drivers/index.d.ts +14 -0
- package/global.d.ts +2 -1
- package/index.d.mts +8 -6
- package/index.d.ts +8 -6
- package/index.js +1 -0
- package/introspect-mysql.d.ts +9 -0
- package/introspect-pg.d.ts +1 -1
- package/introspect-sqlite.d.ts +1 -1
- package/jsonStatements.d.ts +1 -1
- package/package.json +17 -4
- package/payload.d.mts +33 -0
- package/payload.d.ts +33 -0
- package/payload.js +37106 -0
- package/payload.mjs +37124 -0
- package/schemaValidator.d.ts +40 -40
- package/serializer/mysqlImports.d.ts +5 -0
- package/serializer/mysqlSchema.d.ts +1991 -753
- package/serializer/mysqlSerializer.d.ts +4 -4
- package/serializer/pgSchema.d.ts +1113 -788
- package/serializer/sqliteImports.d.ts +4 -0
- package/serializer/sqliteSchema.d.ts +144 -570
- package/serializer/sqliteSerializer.d.ts +2 -2
- package/snapshotsDiffer.d.ts +24 -20
- package/utils-studio.js +21 -8
- package/utils-studio.mjs +20 -8
- package/utils.d.ts +13 -27
- package/utils.js +3080 -54201
- package/utils.mjs +8175 -0
- package/cli/commands/sqliteUtils.d.ts +0 -162
- package/cli/utils.d.ts +0 -12
- 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
@@ -1,162 +0,0 @@
|
|
1
|
-
import { TypeOf } from "zod";
|
2
|
-
import { configIntrospectSchema } from "./utils";
|
3
|
-
export declare const sqliteConnectionSchema: import("zod").ZodUnion<[import("zod").ZodObject<{
|
4
|
-
driver: import("zod").ZodLiteral<"turso">;
|
5
|
-
dbCredentials: import("zod").ZodObject<{
|
6
|
-
url: import("zod").ZodString;
|
7
|
-
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
8
|
-
}, "strip", import("zod").ZodTypeAny, {
|
9
|
-
authToken?: string | undefined;
|
10
|
-
url: string;
|
11
|
-
}, {
|
12
|
-
authToken?: string | undefined;
|
13
|
-
url: string;
|
14
|
-
}>;
|
15
|
-
}, "strip", import("zod").ZodTypeAny, {
|
16
|
-
driver: "turso";
|
17
|
-
dbCredentials: {
|
18
|
-
authToken?: string | undefined;
|
19
|
-
url: string;
|
20
|
-
};
|
21
|
-
}, {
|
22
|
-
driver: "turso";
|
23
|
-
dbCredentials: {
|
24
|
-
authToken?: string | undefined;
|
25
|
-
url: string;
|
26
|
-
};
|
27
|
-
}>, import("zod").ZodObject<{
|
28
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
29
|
-
dbCredentials: import("zod").ZodObject<{
|
30
|
-
url: import("zod").ZodString;
|
31
|
-
}, "strip", import("zod").ZodTypeAny, {
|
32
|
-
url: string;
|
33
|
-
}, {
|
34
|
-
url: string;
|
35
|
-
}>;
|
36
|
-
}, "strip", import("zod").ZodTypeAny, {
|
37
|
-
driver: "libsql";
|
38
|
-
dbCredentials: {
|
39
|
-
url: string;
|
40
|
-
};
|
41
|
-
}, {
|
42
|
-
driver: "libsql";
|
43
|
-
dbCredentials: {
|
44
|
-
url: string;
|
45
|
-
};
|
46
|
-
}>, import("zod").ZodObject<{
|
47
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
48
|
-
dbCredentials: import("zod").ZodObject<{
|
49
|
-
url: import("zod").ZodString;
|
50
|
-
}, "strip", import("zod").ZodTypeAny, {
|
51
|
-
url: string;
|
52
|
-
}, {
|
53
|
-
url: string;
|
54
|
-
}>;
|
55
|
-
}, "strip", import("zod").ZodTypeAny, {
|
56
|
-
driver: "better-sqlite";
|
57
|
-
dbCredentials: {
|
58
|
-
url: string;
|
59
|
-
};
|
60
|
-
}, {
|
61
|
-
driver: "better-sqlite";
|
62
|
-
dbCredentials: {
|
63
|
-
url: string;
|
64
|
-
};
|
65
|
-
}>]>;
|
66
|
-
export declare const sqliteCliConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
|
67
|
-
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
68
|
-
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
69
|
-
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
70
|
-
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
71
|
-
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
72
|
-
introspect: import("zod").ZodDefault<import("zod").ZodObject<{
|
73
|
-
casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
74
|
-
}, "strip", import("zod").ZodTypeAny, {
|
75
|
-
casing: "camel" | "preserve";
|
76
|
-
}, {
|
77
|
-
casing?: "camel" | "preserve" | undefined;
|
78
|
-
}>>;
|
79
|
-
}, "strip", import("zod").ZodTypeAny, {
|
80
|
-
schema?: string | string[] | undefined;
|
81
|
-
tablesFilter?: string | string[] | undefined;
|
82
|
-
out: string;
|
83
|
-
breakpoints: boolean;
|
84
|
-
schemaFilter: string | string[];
|
85
|
-
introspect: {
|
86
|
-
casing: "camel" | "preserve";
|
87
|
-
};
|
88
|
-
}, {
|
89
|
-
schema?: string | string[] | undefined;
|
90
|
-
out?: string | undefined;
|
91
|
-
breakpoints?: boolean | undefined;
|
92
|
-
tablesFilter?: string | string[] | undefined;
|
93
|
-
schemaFilter?: string | string[] | undefined;
|
94
|
-
introspect?: {
|
95
|
-
casing?: "camel" | "preserve" | undefined;
|
96
|
-
} | undefined;
|
97
|
-
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
98
|
-
driver: import("zod").ZodLiteral<"turso">;
|
99
|
-
dbCredentials: import("zod").ZodObject<{
|
100
|
-
url: import("zod").ZodString;
|
101
|
-
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
102
|
-
}, "strip", import("zod").ZodTypeAny, {
|
103
|
-
authToken?: string | undefined;
|
104
|
-
url: string;
|
105
|
-
}, {
|
106
|
-
authToken?: string | undefined;
|
107
|
-
url: string;
|
108
|
-
}>;
|
109
|
-
}, "strip", import("zod").ZodTypeAny, {
|
110
|
-
driver: "turso";
|
111
|
-
dbCredentials: {
|
112
|
-
authToken?: string | undefined;
|
113
|
-
url: string;
|
114
|
-
};
|
115
|
-
}, {
|
116
|
-
driver: "turso";
|
117
|
-
dbCredentials: {
|
118
|
-
authToken?: string | undefined;
|
119
|
-
url: string;
|
120
|
-
};
|
121
|
-
}>, import("zod").ZodObject<{
|
122
|
-
driver: import("zod").ZodLiteral<"libsql">;
|
123
|
-
dbCredentials: import("zod").ZodObject<{
|
124
|
-
url: import("zod").ZodString;
|
125
|
-
}, "strip", import("zod").ZodTypeAny, {
|
126
|
-
url: string;
|
127
|
-
}, {
|
128
|
-
url: string;
|
129
|
-
}>;
|
130
|
-
}, "strip", import("zod").ZodTypeAny, {
|
131
|
-
driver: "libsql";
|
132
|
-
dbCredentials: {
|
133
|
-
url: string;
|
134
|
-
};
|
135
|
-
}, {
|
136
|
-
driver: "libsql";
|
137
|
-
dbCredentials: {
|
138
|
-
url: string;
|
139
|
-
};
|
140
|
-
}>, import("zod").ZodObject<{
|
141
|
-
driver: import("zod").ZodLiteral<"better-sqlite">;
|
142
|
-
dbCredentials: import("zod").ZodObject<{
|
143
|
-
url: import("zod").ZodString;
|
144
|
-
}, "strip", import("zod").ZodTypeAny, {
|
145
|
-
url: string;
|
146
|
-
}, {
|
147
|
-
url: string;
|
148
|
-
}>;
|
149
|
-
}, "strip", import("zod").ZodTypeAny, {
|
150
|
-
driver: "better-sqlite";
|
151
|
-
dbCredentials: {
|
152
|
-
url: string;
|
153
|
-
};
|
154
|
-
}, {
|
155
|
-
driver: "better-sqlite";
|
156
|
-
dbCredentials: {
|
157
|
-
url: string;
|
158
|
-
};
|
159
|
-
}>]>>;
|
160
|
-
export type SQLiteCliConfig = TypeOf<typeof sqliteCliConfigSchema>;
|
161
|
-
export type SQLiteConnectionConfig = TypeOf<typeof sqliteConnectionSchema>;
|
162
|
-
export { configIntrospectSchema };
|
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
|
-
}>;
|