drizzle-kit 1.0.0-beta.1-f77460a → 1.0.0-beta.1-fca6ce7
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/api.d.mts +1 -265
- package/api.d.ts +1 -265
- package/api.js +44396 -163362
- package/api.mjs +44375 -163331
- package/bin.cjs +28 -42
- package/package.json +1 -1
package/api.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PGlite } from '@electric-sql/pglite';
|
|
2
1
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
3
2
|
import { MySql2Database } from 'drizzle-orm/mysql2';
|
|
4
3
|
import { PgDatabase } from 'drizzle-orm/pg-core';
|
|
@@ -8,246 +7,6 @@ import * as zod from 'zod';
|
|
|
8
7
|
import { TypeOf } from 'zod';
|
|
9
8
|
import 'tls';
|
|
10
9
|
|
|
11
|
-
declare const mysqlCredentials: zod.ZodUnion<[zod.ZodObject<{
|
|
12
|
-
host: zod.ZodString;
|
|
13
|
-
port: zod.ZodOptional<zod.ZodNumber>;
|
|
14
|
-
user: zod.ZodOptional<zod.ZodString>;
|
|
15
|
-
password: zod.ZodOptional<zod.ZodString>;
|
|
16
|
-
database: zod.ZodString;
|
|
17
|
-
ssl: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<{
|
|
18
|
-
pfx: zod.ZodOptional<zod.ZodString>;
|
|
19
|
-
key: zod.ZodOptional<zod.ZodString>;
|
|
20
|
-
passphrase: zod.ZodOptional<zod.ZodString>;
|
|
21
|
-
cert: zod.ZodOptional<zod.ZodString>;
|
|
22
|
-
ca: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
23
|
-
crl: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
24
|
-
ciphers: zod.ZodOptional<zod.ZodString>;
|
|
25
|
-
rejectUnauthorized: zod.ZodOptional<zod.ZodBoolean>;
|
|
26
|
-
}, "strip", zod.ZodTypeAny, {
|
|
27
|
-
pfx?: string | undefined;
|
|
28
|
-
key?: string | undefined;
|
|
29
|
-
passphrase?: string | undefined;
|
|
30
|
-
cert?: string | undefined;
|
|
31
|
-
ca?: string | string[] | undefined;
|
|
32
|
-
crl?: string | string[] | undefined;
|
|
33
|
-
ciphers?: string | undefined;
|
|
34
|
-
rejectUnauthorized?: boolean | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
pfx?: string | undefined;
|
|
37
|
-
key?: string | undefined;
|
|
38
|
-
passphrase?: string | undefined;
|
|
39
|
-
cert?: string | undefined;
|
|
40
|
-
ca?: string | string[] | undefined;
|
|
41
|
-
crl?: string | string[] | undefined;
|
|
42
|
-
ciphers?: string | undefined;
|
|
43
|
-
rejectUnauthorized?: boolean | undefined;
|
|
44
|
-
}>]>>;
|
|
45
|
-
}, "strip", zod.ZodTypeAny, {
|
|
46
|
-
host: string;
|
|
47
|
-
database: string;
|
|
48
|
-
port?: number | undefined;
|
|
49
|
-
user?: string | undefined;
|
|
50
|
-
password?: string | undefined;
|
|
51
|
-
ssl?: string | {
|
|
52
|
-
pfx?: string | undefined;
|
|
53
|
-
key?: string | undefined;
|
|
54
|
-
passphrase?: string | undefined;
|
|
55
|
-
cert?: string | undefined;
|
|
56
|
-
ca?: string | string[] | undefined;
|
|
57
|
-
crl?: string | string[] | undefined;
|
|
58
|
-
ciphers?: string | undefined;
|
|
59
|
-
rejectUnauthorized?: boolean | undefined;
|
|
60
|
-
} | undefined;
|
|
61
|
-
}, {
|
|
62
|
-
host: string;
|
|
63
|
-
database: string;
|
|
64
|
-
port?: number | undefined;
|
|
65
|
-
user?: string | undefined;
|
|
66
|
-
password?: string | undefined;
|
|
67
|
-
ssl?: string | {
|
|
68
|
-
pfx?: string | undefined;
|
|
69
|
-
key?: string | undefined;
|
|
70
|
-
passphrase?: string | undefined;
|
|
71
|
-
cert?: string | undefined;
|
|
72
|
-
ca?: string | string[] | undefined;
|
|
73
|
-
crl?: string | string[] | undefined;
|
|
74
|
-
ciphers?: string | undefined;
|
|
75
|
-
rejectUnauthorized?: boolean | undefined;
|
|
76
|
-
} | undefined;
|
|
77
|
-
}>, zod.ZodObject<{
|
|
78
|
-
url: zod.ZodString;
|
|
79
|
-
}, "strip", zod.ZodTypeAny, {
|
|
80
|
-
url: string;
|
|
81
|
-
}, {
|
|
82
|
-
url: string;
|
|
83
|
-
}>]>;
|
|
84
|
-
type MysqlCredentials = TypeOf<typeof mysqlCredentials>;
|
|
85
|
-
|
|
86
|
-
declare const postgresCredentials: zod.ZodUnion<[zod.ZodEffects<zod.ZodObject<{
|
|
87
|
-
driver: zod.ZodUndefined;
|
|
88
|
-
host: zod.ZodString;
|
|
89
|
-
port: zod.ZodOptional<zod.ZodNumber>;
|
|
90
|
-
user: zod.ZodOptional<zod.ZodString>;
|
|
91
|
-
password: zod.ZodOptional<zod.ZodString>;
|
|
92
|
-
database: zod.ZodString;
|
|
93
|
-
ssl: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"require">, zod.ZodLiteral<"allow">, zod.ZodLiteral<"prefer">, zod.ZodLiteral<"verify-full">, zod.ZodBoolean, zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>]>>;
|
|
94
|
-
}, "strip", zod.ZodTypeAny, {
|
|
95
|
-
host: string;
|
|
96
|
-
database: string;
|
|
97
|
-
driver?: undefined;
|
|
98
|
-
port?: number | undefined;
|
|
99
|
-
user?: string | undefined;
|
|
100
|
-
password?: string | undefined;
|
|
101
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
host: string;
|
|
104
|
-
database: string;
|
|
105
|
-
driver?: undefined;
|
|
106
|
-
port?: number | undefined;
|
|
107
|
-
user?: string | undefined;
|
|
108
|
-
password?: string | undefined;
|
|
109
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;
|
|
110
|
-
}>, Omit<{
|
|
111
|
-
host: string;
|
|
112
|
-
database: string;
|
|
113
|
-
driver?: undefined;
|
|
114
|
-
port?: number | undefined;
|
|
115
|
-
user?: string | undefined;
|
|
116
|
-
password?: string | undefined;
|
|
117
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;
|
|
118
|
-
}, "driver">, {
|
|
119
|
-
host: string;
|
|
120
|
-
database: string;
|
|
121
|
-
driver?: undefined;
|
|
122
|
-
port?: number | undefined;
|
|
123
|
-
user?: string | undefined;
|
|
124
|
-
password?: string | undefined;
|
|
125
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;
|
|
126
|
-
}>, zod.ZodEffects<zod.ZodObject<{
|
|
127
|
-
driver: zod.ZodUndefined;
|
|
128
|
-
url: zod.ZodString;
|
|
129
|
-
}, "strip", zod.ZodTypeAny, {
|
|
130
|
-
url: string;
|
|
131
|
-
driver?: undefined;
|
|
132
|
-
}, {
|
|
133
|
-
url: string;
|
|
134
|
-
driver?: undefined;
|
|
135
|
-
}>, {
|
|
136
|
-
url: string;
|
|
137
|
-
}, {
|
|
138
|
-
url: string;
|
|
139
|
-
driver?: undefined;
|
|
140
|
-
}>, zod.ZodObject<{
|
|
141
|
-
driver: zod.ZodLiteral<"aws-data-api">;
|
|
142
|
-
database: zod.ZodString;
|
|
143
|
-
secretArn: zod.ZodString;
|
|
144
|
-
resourceArn: zod.ZodString;
|
|
145
|
-
}, "strip", zod.ZodTypeAny, {
|
|
146
|
-
driver: "aws-data-api";
|
|
147
|
-
database: string;
|
|
148
|
-
secretArn: string;
|
|
149
|
-
resourceArn: string;
|
|
150
|
-
}, {
|
|
151
|
-
driver: "aws-data-api";
|
|
152
|
-
database: string;
|
|
153
|
-
secretArn: string;
|
|
154
|
-
resourceArn: string;
|
|
155
|
-
}>, zod.ZodObject<{
|
|
156
|
-
driver: zod.ZodLiteral<"pglite">;
|
|
157
|
-
url: zod.ZodString;
|
|
158
|
-
}, "strip", zod.ZodTypeAny, {
|
|
159
|
-
url: string;
|
|
160
|
-
driver: "pglite";
|
|
161
|
-
}, {
|
|
162
|
-
url: string;
|
|
163
|
-
driver: "pglite";
|
|
164
|
-
}>]>;
|
|
165
|
-
type PostgresCredentials = TypeOf<typeof postgresCredentials>;
|
|
166
|
-
|
|
167
|
-
declare const singlestoreCredentials: zod.ZodUnion<[zod.ZodObject<{
|
|
168
|
-
host: zod.ZodString;
|
|
169
|
-
port: zod.ZodOptional<zod.ZodNumber>;
|
|
170
|
-
user: zod.ZodOptional<zod.ZodString>;
|
|
171
|
-
password: zod.ZodOptional<zod.ZodString>;
|
|
172
|
-
database: zod.ZodString;
|
|
173
|
-
ssl: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<{
|
|
174
|
-
pfx: zod.ZodOptional<zod.ZodString>;
|
|
175
|
-
key: zod.ZodOptional<zod.ZodString>;
|
|
176
|
-
passphrase: zod.ZodOptional<zod.ZodString>;
|
|
177
|
-
cert: zod.ZodOptional<zod.ZodString>;
|
|
178
|
-
ca: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
179
|
-
crl: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
180
|
-
ciphers: zod.ZodOptional<zod.ZodString>;
|
|
181
|
-
rejectUnauthorized: zod.ZodOptional<zod.ZodBoolean>;
|
|
182
|
-
}, "strip", zod.ZodTypeAny, {
|
|
183
|
-
pfx?: string | undefined;
|
|
184
|
-
key?: string | undefined;
|
|
185
|
-
passphrase?: string | undefined;
|
|
186
|
-
cert?: string | undefined;
|
|
187
|
-
ca?: string | string[] | undefined;
|
|
188
|
-
crl?: string | string[] | undefined;
|
|
189
|
-
ciphers?: string | undefined;
|
|
190
|
-
rejectUnauthorized?: boolean | undefined;
|
|
191
|
-
}, {
|
|
192
|
-
pfx?: string | undefined;
|
|
193
|
-
key?: string | undefined;
|
|
194
|
-
passphrase?: string | undefined;
|
|
195
|
-
cert?: string | undefined;
|
|
196
|
-
ca?: string | string[] | undefined;
|
|
197
|
-
crl?: string | string[] | undefined;
|
|
198
|
-
ciphers?: string | undefined;
|
|
199
|
-
rejectUnauthorized?: boolean | undefined;
|
|
200
|
-
}>]>>;
|
|
201
|
-
}, "strip", zod.ZodTypeAny, {
|
|
202
|
-
host: string;
|
|
203
|
-
database: string;
|
|
204
|
-
port?: number | undefined;
|
|
205
|
-
user?: string | undefined;
|
|
206
|
-
password?: string | undefined;
|
|
207
|
-
ssl?: string | {
|
|
208
|
-
pfx?: string | undefined;
|
|
209
|
-
key?: string | undefined;
|
|
210
|
-
passphrase?: string | undefined;
|
|
211
|
-
cert?: string | undefined;
|
|
212
|
-
ca?: string | string[] | undefined;
|
|
213
|
-
crl?: string | string[] | undefined;
|
|
214
|
-
ciphers?: string | undefined;
|
|
215
|
-
rejectUnauthorized?: boolean | undefined;
|
|
216
|
-
} | undefined;
|
|
217
|
-
}, {
|
|
218
|
-
host: string;
|
|
219
|
-
database: string;
|
|
220
|
-
port?: number | undefined;
|
|
221
|
-
user?: string | undefined;
|
|
222
|
-
password?: string | undefined;
|
|
223
|
-
ssl?: string | {
|
|
224
|
-
pfx?: string | undefined;
|
|
225
|
-
key?: string | undefined;
|
|
226
|
-
passphrase?: string | undefined;
|
|
227
|
-
cert?: string | undefined;
|
|
228
|
-
ca?: string | string[] | undefined;
|
|
229
|
-
crl?: string | string[] | undefined;
|
|
230
|
-
ciphers?: string | undefined;
|
|
231
|
-
rejectUnauthorized?: boolean | undefined;
|
|
232
|
-
} | undefined;
|
|
233
|
-
}>, zod.ZodObject<{
|
|
234
|
-
url: zod.ZodString;
|
|
235
|
-
}, "strip", zod.ZodTypeAny, {
|
|
236
|
-
url: string;
|
|
237
|
-
}, {
|
|
238
|
-
url: string;
|
|
239
|
-
}>]>;
|
|
240
|
-
type SingleStoreCredentials = TypeOf<typeof singlestoreCredentials>;
|
|
241
|
-
|
|
242
|
-
type SqliteCredentials = {
|
|
243
|
-
driver: 'd1-http';
|
|
244
|
-
accountId: string;
|
|
245
|
-
databaseId: string;
|
|
246
|
-
token: string;
|
|
247
|
-
} | {
|
|
248
|
-
url: string;
|
|
249
|
-
};
|
|
250
|
-
|
|
251
10
|
declare const schema$2: zod.ZodObject<{
|
|
252
11
|
version: zod.ZodLiteral<"5">;
|
|
253
12
|
dialect: zod.ZodLiteral<"mysql">;
|
|
@@ -2868,14 +2627,6 @@ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: Pg
|
|
|
2868
2627
|
statementsToExecute: string[];
|
|
2869
2628
|
apply: () => Promise<void>;
|
|
2870
2629
|
}>;
|
|
2871
|
-
declare const startStudioPostgres: (imports: Record<string, unknown>, credentials: PostgresCredentials | {
|
|
2872
|
-
driver: "pglite";
|
|
2873
|
-
client: PGlite;
|
|
2874
|
-
}, options?: {
|
|
2875
|
-
host?: string;
|
|
2876
|
-
port?: number;
|
|
2877
|
-
casing?: CasingType;
|
|
2878
|
-
}) => Promise<void>;
|
|
2879
2630
|
declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SQLiteSchema>;
|
|
2880
2631
|
declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
|
|
2881
2632
|
declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any, any>) => Promise<{
|
|
@@ -2884,11 +2635,6 @@ declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstan
|
|
|
2884
2635
|
statementsToExecute: string[];
|
|
2885
2636
|
apply: () => Promise<void>;
|
|
2886
2637
|
}>;
|
|
2887
|
-
declare const startStudioSQLite: (imports: Record<string, unknown>, credentials: SqliteCredentials, options?: {
|
|
2888
|
-
host?: string;
|
|
2889
|
-
port?: number;
|
|
2890
|
-
casing?: CasingType;
|
|
2891
|
-
}) => Promise<void>;
|
|
2892
2638
|
declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<MySqlSchema>;
|
|
2893
2639
|
declare const generateMySQLMigration: (prev: DrizzleMySQLSnapshotJSON, cur: DrizzleMySQLSnapshotJSON) => Promise<string[]>;
|
|
2894
2640
|
declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstance: MySql2Database<any, any>, databaseName: string) => Promise<{
|
|
@@ -2897,11 +2643,6 @@ declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstanc
|
|
|
2897
2643
|
statementsToExecute: string[];
|
|
2898
2644
|
apply: () => Promise<void>;
|
|
2899
2645
|
}>;
|
|
2900
|
-
declare const startStudioMySQL: (imports: Record<string, unknown>, credentials: MysqlCredentials, options?: {
|
|
2901
|
-
host?: string;
|
|
2902
|
-
port?: number;
|
|
2903
|
-
casing?: CasingType;
|
|
2904
|
-
}) => Promise<void>;
|
|
2905
2646
|
declare const generateSingleStoreDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SingleStoreSchema>;
|
|
2906
2647
|
declare const generateSingleStoreMigration: (prev: DrizzleSingleStoreSnapshotJSON, cur: DrizzleSingleStoreSnapshotJSON) => Promise<string[]>;
|
|
2907
2648
|
declare const pushSingleStoreSchema: (imports: Record<string, unknown>, drizzleInstance: SingleStoreDriverDatabase<any>, databaseName: string) => Promise<{
|
|
@@ -2910,11 +2651,6 @@ declare const pushSingleStoreSchema: (imports: Record<string, unknown>, drizzleI
|
|
|
2910
2651
|
statementsToExecute: string[];
|
|
2911
2652
|
apply: () => Promise<void>;
|
|
2912
2653
|
}>;
|
|
2913
|
-
declare const startStudioSingleStore: (imports: Record<string, unknown>, credentials: SingleStoreCredentials, options?: {
|
|
2914
|
-
host?: string;
|
|
2915
|
-
port?: number;
|
|
2916
|
-
casing?: CasingType;
|
|
2917
|
-
}) => Promise<void>;
|
|
2918
2654
|
declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2919
2655
|
version: "7";
|
|
2920
2656
|
dialect: "postgresql";
|
|
@@ -3107,4 +2843,4 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
|
3107
2843
|
} | undefined;
|
|
3108
2844
|
} | Record<string, unknown>;
|
|
3109
2845
|
|
|
3110
|
-
export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSingleStoreSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, generateSingleStoreDrizzleJson, generateSingleStoreMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema, pushSingleStoreSchema,
|
|
2846
|
+
export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSingleStoreSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, generateSingleStoreDrizzleJson, generateSingleStoreMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema, pushSingleStoreSchema, upPgSnapshot };
|
package/api.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PGlite } from '@electric-sql/pglite';
|
|
2
1
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
3
2
|
import { MySql2Database } from 'drizzle-orm/mysql2';
|
|
4
3
|
import { PgDatabase } from 'drizzle-orm/pg-core';
|
|
@@ -8,246 +7,6 @@ import * as zod from 'zod';
|
|
|
8
7
|
import { TypeOf } from 'zod';
|
|
9
8
|
import 'tls';
|
|
10
9
|
|
|
11
|
-
declare const mysqlCredentials: zod.ZodUnion<[zod.ZodObject<{
|
|
12
|
-
host: zod.ZodString;
|
|
13
|
-
port: zod.ZodOptional<zod.ZodNumber>;
|
|
14
|
-
user: zod.ZodOptional<zod.ZodString>;
|
|
15
|
-
password: zod.ZodOptional<zod.ZodString>;
|
|
16
|
-
database: zod.ZodString;
|
|
17
|
-
ssl: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<{
|
|
18
|
-
pfx: zod.ZodOptional<zod.ZodString>;
|
|
19
|
-
key: zod.ZodOptional<zod.ZodString>;
|
|
20
|
-
passphrase: zod.ZodOptional<zod.ZodString>;
|
|
21
|
-
cert: zod.ZodOptional<zod.ZodString>;
|
|
22
|
-
ca: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
23
|
-
crl: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
24
|
-
ciphers: zod.ZodOptional<zod.ZodString>;
|
|
25
|
-
rejectUnauthorized: zod.ZodOptional<zod.ZodBoolean>;
|
|
26
|
-
}, "strip", zod.ZodTypeAny, {
|
|
27
|
-
pfx?: string | undefined;
|
|
28
|
-
key?: string | undefined;
|
|
29
|
-
passphrase?: string | undefined;
|
|
30
|
-
cert?: string | undefined;
|
|
31
|
-
ca?: string | string[] | undefined;
|
|
32
|
-
crl?: string | string[] | undefined;
|
|
33
|
-
ciphers?: string | undefined;
|
|
34
|
-
rejectUnauthorized?: boolean | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
pfx?: string | undefined;
|
|
37
|
-
key?: string | undefined;
|
|
38
|
-
passphrase?: string | undefined;
|
|
39
|
-
cert?: string | undefined;
|
|
40
|
-
ca?: string | string[] | undefined;
|
|
41
|
-
crl?: string | string[] | undefined;
|
|
42
|
-
ciphers?: string | undefined;
|
|
43
|
-
rejectUnauthorized?: boolean | undefined;
|
|
44
|
-
}>]>>;
|
|
45
|
-
}, "strip", zod.ZodTypeAny, {
|
|
46
|
-
host: string;
|
|
47
|
-
database: string;
|
|
48
|
-
port?: number | undefined;
|
|
49
|
-
user?: string | undefined;
|
|
50
|
-
password?: string | undefined;
|
|
51
|
-
ssl?: string | {
|
|
52
|
-
pfx?: string | undefined;
|
|
53
|
-
key?: string | undefined;
|
|
54
|
-
passphrase?: string | undefined;
|
|
55
|
-
cert?: string | undefined;
|
|
56
|
-
ca?: string | string[] | undefined;
|
|
57
|
-
crl?: string | string[] | undefined;
|
|
58
|
-
ciphers?: string | undefined;
|
|
59
|
-
rejectUnauthorized?: boolean | undefined;
|
|
60
|
-
} | undefined;
|
|
61
|
-
}, {
|
|
62
|
-
host: string;
|
|
63
|
-
database: string;
|
|
64
|
-
port?: number | undefined;
|
|
65
|
-
user?: string | undefined;
|
|
66
|
-
password?: string | undefined;
|
|
67
|
-
ssl?: string | {
|
|
68
|
-
pfx?: string | undefined;
|
|
69
|
-
key?: string | undefined;
|
|
70
|
-
passphrase?: string | undefined;
|
|
71
|
-
cert?: string | undefined;
|
|
72
|
-
ca?: string | string[] | undefined;
|
|
73
|
-
crl?: string | string[] | undefined;
|
|
74
|
-
ciphers?: string | undefined;
|
|
75
|
-
rejectUnauthorized?: boolean | undefined;
|
|
76
|
-
} | undefined;
|
|
77
|
-
}>, zod.ZodObject<{
|
|
78
|
-
url: zod.ZodString;
|
|
79
|
-
}, "strip", zod.ZodTypeAny, {
|
|
80
|
-
url: string;
|
|
81
|
-
}, {
|
|
82
|
-
url: string;
|
|
83
|
-
}>]>;
|
|
84
|
-
type MysqlCredentials = TypeOf<typeof mysqlCredentials>;
|
|
85
|
-
|
|
86
|
-
declare const postgresCredentials: zod.ZodUnion<[zod.ZodEffects<zod.ZodObject<{
|
|
87
|
-
driver: zod.ZodUndefined;
|
|
88
|
-
host: zod.ZodString;
|
|
89
|
-
port: zod.ZodOptional<zod.ZodNumber>;
|
|
90
|
-
user: zod.ZodOptional<zod.ZodString>;
|
|
91
|
-
password: zod.ZodOptional<zod.ZodString>;
|
|
92
|
-
database: zod.ZodString;
|
|
93
|
-
ssl: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"require">, zod.ZodLiteral<"allow">, zod.ZodLiteral<"prefer">, zod.ZodLiteral<"verify-full">, zod.ZodBoolean, zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>]>>;
|
|
94
|
-
}, "strip", zod.ZodTypeAny, {
|
|
95
|
-
host: string;
|
|
96
|
-
database: string;
|
|
97
|
-
driver?: undefined;
|
|
98
|
-
port?: number | undefined;
|
|
99
|
-
user?: string | undefined;
|
|
100
|
-
password?: string | undefined;
|
|
101
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
host: string;
|
|
104
|
-
database: string;
|
|
105
|
-
driver?: undefined;
|
|
106
|
-
port?: number | undefined;
|
|
107
|
-
user?: string | undefined;
|
|
108
|
-
password?: string | undefined;
|
|
109
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;
|
|
110
|
-
}>, Omit<{
|
|
111
|
-
host: string;
|
|
112
|
-
database: string;
|
|
113
|
-
driver?: undefined;
|
|
114
|
-
port?: number | undefined;
|
|
115
|
-
user?: string | undefined;
|
|
116
|
-
password?: string | undefined;
|
|
117
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;
|
|
118
|
-
}, "driver">, {
|
|
119
|
-
host: string;
|
|
120
|
-
database: string;
|
|
121
|
-
driver?: undefined;
|
|
122
|
-
port?: number | undefined;
|
|
123
|
-
user?: string | undefined;
|
|
124
|
-
password?: string | undefined;
|
|
125
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod.objectInputType<{}, zod.ZodTypeAny, "passthrough"> | undefined;
|
|
126
|
-
}>, zod.ZodEffects<zod.ZodObject<{
|
|
127
|
-
driver: zod.ZodUndefined;
|
|
128
|
-
url: zod.ZodString;
|
|
129
|
-
}, "strip", zod.ZodTypeAny, {
|
|
130
|
-
url: string;
|
|
131
|
-
driver?: undefined;
|
|
132
|
-
}, {
|
|
133
|
-
url: string;
|
|
134
|
-
driver?: undefined;
|
|
135
|
-
}>, {
|
|
136
|
-
url: string;
|
|
137
|
-
}, {
|
|
138
|
-
url: string;
|
|
139
|
-
driver?: undefined;
|
|
140
|
-
}>, zod.ZodObject<{
|
|
141
|
-
driver: zod.ZodLiteral<"aws-data-api">;
|
|
142
|
-
database: zod.ZodString;
|
|
143
|
-
secretArn: zod.ZodString;
|
|
144
|
-
resourceArn: zod.ZodString;
|
|
145
|
-
}, "strip", zod.ZodTypeAny, {
|
|
146
|
-
driver: "aws-data-api";
|
|
147
|
-
database: string;
|
|
148
|
-
secretArn: string;
|
|
149
|
-
resourceArn: string;
|
|
150
|
-
}, {
|
|
151
|
-
driver: "aws-data-api";
|
|
152
|
-
database: string;
|
|
153
|
-
secretArn: string;
|
|
154
|
-
resourceArn: string;
|
|
155
|
-
}>, zod.ZodObject<{
|
|
156
|
-
driver: zod.ZodLiteral<"pglite">;
|
|
157
|
-
url: zod.ZodString;
|
|
158
|
-
}, "strip", zod.ZodTypeAny, {
|
|
159
|
-
url: string;
|
|
160
|
-
driver: "pglite";
|
|
161
|
-
}, {
|
|
162
|
-
url: string;
|
|
163
|
-
driver: "pglite";
|
|
164
|
-
}>]>;
|
|
165
|
-
type PostgresCredentials = TypeOf<typeof postgresCredentials>;
|
|
166
|
-
|
|
167
|
-
declare const singlestoreCredentials: zod.ZodUnion<[zod.ZodObject<{
|
|
168
|
-
host: zod.ZodString;
|
|
169
|
-
port: zod.ZodOptional<zod.ZodNumber>;
|
|
170
|
-
user: zod.ZodOptional<zod.ZodString>;
|
|
171
|
-
password: zod.ZodOptional<zod.ZodString>;
|
|
172
|
-
database: zod.ZodString;
|
|
173
|
-
ssl: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodObject<{
|
|
174
|
-
pfx: zod.ZodOptional<zod.ZodString>;
|
|
175
|
-
key: zod.ZodOptional<zod.ZodString>;
|
|
176
|
-
passphrase: zod.ZodOptional<zod.ZodString>;
|
|
177
|
-
cert: zod.ZodOptional<zod.ZodString>;
|
|
178
|
-
ca: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
179
|
-
crl: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>>;
|
|
180
|
-
ciphers: zod.ZodOptional<zod.ZodString>;
|
|
181
|
-
rejectUnauthorized: zod.ZodOptional<zod.ZodBoolean>;
|
|
182
|
-
}, "strip", zod.ZodTypeAny, {
|
|
183
|
-
pfx?: string | undefined;
|
|
184
|
-
key?: string | undefined;
|
|
185
|
-
passphrase?: string | undefined;
|
|
186
|
-
cert?: string | undefined;
|
|
187
|
-
ca?: string | string[] | undefined;
|
|
188
|
-
crl?: string | string[] | undefined;
|
|
189
|
-
ciphers?: string | undefined;
|
|
190
|
-
rejectUnauthorized?: boolean | undefined;
|
|
191
|
-
}, {
|
|
192
|
-
pfx?: string | undefined;
|
|
193
|
-
key?: string | undefined;
|
|
194
|
-
passphrase?: string | undefined;
|
|
195
|
-
cert?: string | undefined;
|
|
196
|
-
ca?: string | string[] | undefined;
|
|
197
|
-
crl?: string | string[] | undefined;
|
|
198
|
-
ciphers?: string | undefined;
|
|
199
|
-
rejectUnauthorized?: boolean | undefined;
|
|
200
|
-
}>]>>;
|
|
201
|
-
}, "strip", zod.ZodTypeAny, {
|
|
202
|
-
host: string;
|
|
203
|
-
database: string;
|
|
204
|
-
port?: number | undefined;
|
|
205
|
-
user?: string | undefined;
|
|
206
|
-
password?: string | undefined;
|
|
207
|
-
ssl?: string | {
|
|
208
|
-
pfx?: string | undefined;
|
|
209
|
-
key?: string | undefined;
|
|
210
|
-
passphrase?: string | undefined;
|
|
211
|
-
cert?: string | undefined;
|
|
212
|
-
ca?: string | string[] | undefined;
|
|
213
|
-
crl?: string | string[] | undefined;
|
|
214
|
-
ciphers?: string | undefined;
|
|
215
|
-
rejectUnauthorized?: boolean | undefined;
|
|
216
|
-
} | undefined;
|
|
217
|
-
}, {
|
|
218
|
-
host: string;
|
|
219
|
-
database: string;
|
|
220
|
-
port?: number | undefined;
|
|
221
|
-
user?: string | undefined;
|
|
222
|
-
password?: string | undefined;
|
|
223
|
-
ssl?: string | {
|
|
224
|
-
pfx?: string | undefined;
|
|
225
|
-
key?: string | undefined;
|
|
226
|
-
passphrase?: string | undefined;
|
|
227
|
-
cert?: string | undefined;
|
|
228
|
-
ca?: string | string[] | undefined;
|
|
229
|
-
crl?: string | string[] | undefined;
|
|
230
|
-
ciphers?: string | undefined;
|
|
231
|
-
rejectUnauthorized?: boolean | undefined;
|
|
232
|
-
} | undefined;
|
|
233
|
-
}>, zod.ZodObject<{
|
|
234
|
-
url: zod.ZodString;
|
|
235
|
-
}, "strip", zod.ZodTypeAny, {
|
|
236
|
-
url: string;
|
|
237
|
-
}, {
|
|
238
|
-
url: string;
|
|
239
|
-
}>]>;
|
|
240
|
-
type SingleStoreCredentials = TypeOf<typeof singlestoreCredentials>;
|
|
241
|
-
|
|
242
|
-
type SqliteCredentials = {
|
|
243
|
-
driver: 'd1-http';
|
|
244
|
-
accountId: string;
|
|
245
|
-
databaseId: string;
|
|
246
|
-
token: string;
|
|
247
|
-
} | {
|
|
248
|
-
url: string;
|
|
249
|
-
};
|
|
250
|
-
|
|
251
10
|
declare const schema$2: zod.ZodObject<{
|
|
252
11
|
version: zod.ZodLiteral<"5">;
|
|
253
12
|
dialect: zod.ZodLiteral<"mysql">;
|
|
@@ -2868,14 +2627,6 @@ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: Pg
|
|
|
2868
2627
|
statementsToExecute: string[];
|
|
2869
2628
|
apply: () => Promise<void>;
|
|
2870
2629
|
}>;
|
|
2871
|
-
declare const startStudioPostgres: (imports: Record<string, unknown>, credentials: PostgresCredentials | {
|
|
2872
|
-
driver: "pglite";
|
|
2873
|
-
client: PGlite;
|
|
2874
|
-
}, options?: {
|
|
2875
|
-
host?: string;
|
|
2876
|
-
port?: number;
|
|
2877
|
-
casing?: CasingType;
|
|
2878
|
-
}) => Promise<void>;
|
|
2879
2630
|
declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SQLiteSchema>;
|
|
2880
2631
|
declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
|
|
2881
2632
|
declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any, any>) => Promise<{
|
|
@@ -2884,11 +2635,6 @@ declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstan
|
|
|
2884
2635
|
statementsToExecute: string[];
|
|
2885
2636
|
apply: () => Promise<void>;
|
|
2886
2637
|
}>;
|
|
2887
|
-
declare const startStudioSQLite: (imports: Record<string, unknown>, credentials: SqliteCredentials, options?: {
|
|
2888
|
-
host?: string;
|
|
2889
|
-
port?: number;
|
|
2890
|
-
casing?: CasingType;
|
|
2891
|
-
}) => Promise<void>;
|
|
2892
2638
|
declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<MySqlSchema>;
|
|
2893
2639
|
declare const generateMySQLMigration: (prev: DrizzleMySQLSnapshotJSON, cur: DrizzleMySQLSnapshotJSON) => Promise<string[]>;
|
|
2894
2640
|
declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstance: MySql2Database<any, any>, databaseName: string) => Promise<{
|
|
@@ -2897,11 +2643,6 @@ declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstanc
|
|
|
2897
2643
|
statementsToExecute: string[];
|
|
2898
2644
|
apply: () => Promise<void>;
|
|
2899
2645
|
}>;
|
|
2900
|
-
declare const startStudioMySQL: (imports: Record<string, unknown>, credentials: MysqlCredentials, options?: {
|
|
2901
|
-
host?: string;
|
|
2902
|
-
port?: number;
|
|
2903
|
-
casing?: CasingType;
|
|
2904
|
-
}) => Promise<void>;
|
|
2905
2646
|
declare const generateSingleStoreDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SingleStoreSchema>;
|
|
2906
2647
|
declare const generateSingleStoreMigration: (prev: DrizzleSingleStoreSnapshotJSON, cur: DrizzleSingleStoreSnapshotJSON) => Promise<string[]>;
|
|
2907
2648
|
declare const pushSingleStoreSchema: (imports: Record<string, unknown>, drizzleInstance: SingleStoreDriverDatabase<any>, databaseName: string) => Promise<{
|
|
@@ -2910,11 +2651,6 @@ declare const pushSingleStoreSchema: (imports: Record<string, unknown>, drizzleI
|
|
|
2910
2651
|
statementsToExecute: string[];
|
|
2911
2652
|
apply: () => Promise<void>;
|
|
2912
2653
|
}>;
|
|
2913
|
-
declare const startStudioSingleStore: (imports: Record<string, unknown>, credentials: SingleStoreCredentials, options?: {
|
|
2914
|
-
host?: string;
|
|
2915
|
-
port?: number;
|
|
2916
|
-
casing?: CasingType;
|
|
2917
|
-
}) => Promise<void>;
|
|
2918
2654
|
declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
2919
2655
|
version: "7";
|
|
2920
2656
|
dialect: "postgresql";
|
|
@@ -3107,4 +2843,4 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
|
3107
2843
|
} | undefined;
|
|
3108
2844
|
} | Record<string, unknown>;
|
|
3109
2845
|
|
|
3110
|
-
export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSingleStoreSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, generateSingleStoreDrizzleJson, generateSingleStoreMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema, pushSingleStoreSchema,
|
|
2846
|
+
export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSingleStoreSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, generateSingleStoreDrizzleJson, generateSingleStoreMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema, pushSingleStoreSchema, upPgSnapshot };
|