drizzle-kit 1.0.0-beta.1-d21cc85 → 1.0.0-beta.1-f77460a

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.
Files changed (6) hide show
  1. package/api.d.mts +265 -1
  2. package/api.d.ts +265 -1
  3. package/api.js +163348 -44381
  4. package/api.mjs +163306 -44349
  5. package/bin.cjs +131 -72
  6. package/package.json +1 -1
package/api.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { PGlite } from '@electric-sql/pglite';
1
2
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
2
3
  import { MySql2Database } from 'drizzle-orm/mysql2';
3
4
  import { PgDatabase } from 'drizzle-orm/pg-core';
@@ -7,6 +8,246 @@ import * as zod from 'zod';
7
8
  import { TypeOf } from 'zod';
8
9
  import 'tls';
9
10
 
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
+
10
251
  declare const schema$2: zod.ZodObject<{
11
252
  version: zod.ZodLiteral<"5">;
12
253
  dialect: zod.ZodLiteral<"mysql">;
@@ -2627,6 +2868,14 @@ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: Pg
2627
2868
  statementsToExecute: string[];
2628
2869
  apply: () => Promise<void>;
2629
2870
  }>;
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>;
2630
2879
  declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SQLiteSchema>;
2631
2880
  declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
2632
2881
  declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any, any>) => Promise<{
@@ -2635,6 +2884,11 @@ declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstan
2635
2884
  statementsToExecute: string[];
2636
2885
  apply: () => Promise<void>;
2637
2886
  }>;
2887
+ declare const startStudioSQLite: (imports: Record<string, unknown>, credentials: SqliteCredentials, options?: {
2888
+ host?: string;
2889
+ port?: number;
2890
+ casing?: CasingType;
2891
+ }) => Promise<void>;
2638
2892
  declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<MySqlSchema>;
2639
2893
  declare const generateMySQLMigration: (prev: DrizzleMySQLSnapshotJSON, cur: DrizzleMySQLSnapshotJSON) => Promise<string[]>;
2640
2894
  declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstance: MySql2Database<any, any>, databaseName: string) => Promise<{
@@ -2643,6 +2897,11 @@ declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstanc
2643
2897
  statementsToExecute: string[];
2644
2898
  apply: () => Promise<void>;
2645
2899
  }>;
2900
+ declare const startStudioMySQL: (imports: Record<string, unknown>, credentials: MysqlCredentials, options?: {
2901
+ host?: string;
2902
+ port?: number;
2903
+ casing?: CasingType;
2904
+ }) => Promise<void>;
2646
2905
  declare const generateSingleStoreDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SingleStoreSchema>;
2647
2906
  declare const generateSingleStoreMigration: (prev: DrizzleSingleStoreSnapshotJSON, cur: DrizzleSingleStoreSnapshotJSON) => Promise<string[]>;
2648
2907
  declare const pushSingleStoreSchema: (imports: Record<string, unknown>, drizzleInstance: SingleStoreDriverDatabase<any>, databaseName: string) => Promise<{
@@ -2651,6 +2910,11 @@ declare const pushSingleStoreSchema: (imports: Record<string, unknown>, drizzleI
2651
2910
  statementsToExecute: string[];
2652
2911
  apply: () => Promise<void>;
2653
2912
  }>;
2913
+ declare const startStudioSingleStore: (imports: Record<string, unknown>, credentials: SingleStoreCredentials, options?: {
2914
+ host?: string;
2915
+ port?: number;
2916
+ casing?: CasingType;
2917
+ }) => Promise<void>;
2654
2918
  declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2655
2919
  version: "7";
2656
2920
  dialect: "postgresql";
@@ -2843,4 +3107,4 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2843
3107
  } | undefined;
2844
3108
  } | Record<string, unknown>;
2845
3109
 
2846
- export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSingleStoreSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, generateSingleStoreDrizzleJson, generateSingleStoreMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema, pushSingleStoreSchema, upPgSnapshot };
3110
+ export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSingleStoreSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, generateSingleStoreDrizzleJson, generateSingleStoreMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema, pushSingleStoreSchema, startStudioMySQL, startStudioPostgres, startStudioSQLite, startStudioSingleStore, upPgSnapshot };
package/api.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { PGlite } from '@electric-sql/pglite';
1
2
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
2
3
  import { MySql2Database } from 'drizzle-orm/mysql2';
3
4
  import { PgDatabase } from 'drizzle-orm/pg-core';
@@ -7,6 +8,246 @@ import * as zod from 'zod';
7
8
  import { TypeOf } from 'zod';
8
9
  import 'tls';
9
10
 
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
+
10
251
  declare const schema$2: zod.ZodObject<{
11
252
  version: zod.ZodLiteral<"5">;
12
253
  dialect: zod.ZodLiteral<"mysql">;
@@ -2627,6 +2868,14 @@ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: Pg
2627
2868
  statementsToExecute: string[];
2628
2869
  apply: () => Promise<void>;
2629
2870
  }>;
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>;
2630
2879
  declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SQLiteSchema>;
2631
2880
  declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
2632
2881
  declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any, any>) => Promise<{
@@ -2635,6 +2884,11 @@ declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstan
2635
2884
  statementsToExecute: string[];
2636
2885
  apply: () => Promise<void>;
2637
2886
  }>;
2887
+ declare const startStudioSQLite: (imports: Record<string, unknown>, credentials: SqliteCredentials, options?: {
2888
+ host?: string;
2889
+ port?: number;
2890
+ casing?: CasingType;
2891
+ }) => Promise<void>;
2638
2892
  declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<MySqlSchema>;
2639
2893
  declare const generateMySQLMigration: (prev: DrizzleMySQLSnapshotJSON, cur: DrizzleMySQLSnapshotJSON) => Promise<string[]>;
2640
2894
  declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstance: MySql2Database<any, any>, databaseName: string) => Promise<{
@@ -2643,6 +2897,11 @@ declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstanc
2643
2897
  statementsToExecute: string[];
2644
2898
  apply: () => Promise<void>;
2645
2899
  }>;
2900
+ declare const startStudioMySQL: (imports: Record<string, unknown>, credentials: MysqlCredentials, options?: {
2901
+ host?: string;
2902
+ port?: number;
2903
+ casing?: CasingType;
2904
+ }) => Promise<void>;
2646
2905
  declare const generateSingleStoreDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SingleStoreSchema>;
2647
2906
  declare const generateSingleStoreMigration: (prev: DrizzleSingleStoreSnapshotJSON, cur: DrizzleSingleStoreSnapshotJSON) => Promise<string[]>;
2648
2907
  declare const pushSingleStoreSchema: (imports: Record<string, unknown>, drizzleInstance: SingleStoreDriverDatabase<any>, databaseName: string) => Promise<{
@@ -2651,6 +2910,11 @@ declare const pushSingleStoreSchema: (imports: Record<string, unknown>, drizzleI
2651
2910
  statementsToExecute: string[];
2652
2911
  apply: () => Promise<void>;
2653
2912
  }>;
2913
+ declare const startStudioSingleStore: (imports: Record<string, unknown>, credentials: SingleStoreCredentials, options?: {
2914
+ host?: string;
2915
+ port?: number;
2916
+ casing?: CasingType;
2917
+ }) => Promise<void>;
2654
2918
  declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2655
2919
  version: "7";
2656
2920
  dialect: "postgresql";
@@ -2843,4 +3107,4 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2843
3107
  } | undefined;
2844
3108
  } | Record<string, unknown>;
2845
3109
 
2846
- export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSingleStoreSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, generateSingleStoreDrizzleJson, generateSingleStoreMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema, pushSingleStoreSchema, upPgSnapshot };
3110
+ export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSingleStoreSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, generateSingleStoreDrizzleJson, generateSingleStoreMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema, pushSingleStoreSchema, startStudioMySQL, startStudioPostgres, startStudioSQLite, startStudioSingleStore, upPgSnapshot };