drizzle-kit 0.20.17-615c551 → 0.20.17-7446198
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +16143 -15021
- package/cli/commands/migrate.d.ts +39 -39
- package/cli/commands/mysqlIntrospect.d.ts +8 -8
- package/cli/commands/pgIntrospect.d.ts +7 -7
- package/cli/commands/sqliteIntrospect.d.ts +12 -12
- package/cli/commands/utils.d.ts +123 -1
- package/cli/connections.d.ts +7 -2
- package/cli/validations/cli.d.ts +51 -51
- package/cli/validations/common.d.ts +32 -32
- package/cli/validations/mysql.d.ts +4 -4
- package/cli/validations/pg.d.ts +4 -4
- package/cli/validations/studio.d.ts +92 -0
- package/cli/views.d.ts +6 -0
- package/index.d.mts +5 -3
- package/index.d.ts +5 -3
- package/package.json +2 -2
- package/payload.js +1096 -430
- package/payload.mjs +899 -233
- package/schemaValidator.d.ts +215 -215
- package/serializer/mysqlSchema.d.ts +892 -892
- package/serializer/pgSchema.d.ts +734 -734
- package/serializer/sqliteSchema.d.ts +457 -457
- package/serializer/studio.d.ts +3 -1
- package/snapshotsDiffer.d.ts +314 -314
- package/utils-studio.js +943 -835
- package/utils-studio.mjs +916 -808
- package/utils.js +839 -214
- package/utils.mjs +814 -189
@@ -24,15 +24,15 @@ export declare const preparePgPush: (schemaPath: string | string[], snapshot: Pg
|
|
24
24
|
tables: Record<string, {
|
25
25
|
name: string;
|
26
26
|
columns: Record<string, {
|
27
|
+
name: string;
|
28
|
+
type: string;
|
29
|
+
primaryKey: boolean;
|
30
|
+
notNull: boolean;
|
27
31
|
isUnique?: any;
|
28
32
|
default?: any;
|
29
33
|
typeSchema?: string | undefined;
|
30
34
|
uniqueName?: string | undefined;
|
31
35
|
nullsNotDistinct?: boolean | undefined;
|
32
|
-
name: string;
|
33
|
-
type: string;
|
34
|
-
primaryKey: boolean;
|
35
|
-
notNull: boolean;
|
36
36
|
}>;
|
37
37
|
indexes: Record<string, string>;
|
38
38
|
foreignKeys: Record<string, string>;
|
@@ -53,15 +53,15 @@ export declare const preparePgPush: (schemaPath: string | string[], snapshot: Pg
|
|
53
53
|
tables: Record<string, {
|
54
54
|
name: string;
|
55
55
|
columns: Record<string, {
|
56
|
+
name: string;
|
57
|
+
type: string;
|
58
|
+
primaryKey: boolean;
|
59
|
+
notNull: boolean;
|
56
60
|
isUnique?: any;
|
57
61
|
default?: any;
|
58
62
|
typeSchema?: string | undefined;
|
59
63
|
uniqueName?: string | undefined;
|
60
64
|
nullsNotDistinct?: boolean | undefined;
|
61
|
-
name: string;
|
62
|
-
type: string;
|
63
|
-
primaryKey: boolean;
|
64
|
-
notNull: boolean;
|
65
65
|
}>;
|
66
66
|
indexes: Record<string, string>;
|
67
67
|
foreignKeys: Record<string, string>;
|
@@ -83,40 +83,33 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
|
|
83
83
|
sqlStatements: string[];
|
84
84
|
statements: import("../../jsonStatements").JsonStatement[];
|
85
85
|
validatedCur: {
|
86
|
-
internal?: {
|
87
|
-
tables: Record<string, {
|
88
|
-
columns: Record<string, {
|
89
|
-
isDefaultAnExpression?: boolean | undefined;
|
90
|
-
} | undefined>;
|
91
|
-
} | undefined>;
|
92
|
-
} | undefined;
|
93
86
|
tables: Record<string, {
|
94
87
|
name: string;
|
95
88
|
columns: Record<string, {
|
96
|
-
default?: any;
|
97
|
-
onUpdate?: any;
|
98
|
-
autoincrement?: boolean | undefined;
|
99
89
|
name: string;
|
100
90
|
type: string;
|
101
91
|
primaryKey: boolean;
|
102
92
|
notNull: boolean;
|
93
|
+
default?: any;
|
94
|
+
onUpdate?: any;
|
95
|
+
autoincrement?: boolean | undefined;
|
103
96
|
}>;
|
104
97
|
indexes: Record<string, {
|
105
|
-
using?: "btree" | "hash" | undefined;
|
106
|
-
algorithm?: "default" | "inplace" | "copy" | undefined;
|
107
|
-
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
108
98
|
name: string;
|
109
99
|
columns: string[];
|
110
100
|
isUnique: boolean;
|
101
|
+
using?: "btree" | "hash" | undefined;
|
102
|
+
algorithm?: "default" | "inplace" | "copy" | undefined;
|
103
|
+
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
111
104
|
}>;
|
112
105
|
foreignKeys: Record<string, {
|
113
|
-
onUpdate?: string | undefined;
|
114
|
-
onDelete?: string | undefined;
|
115
106
|
name: string;
|
116
107
|
tableFrom: string;
|
117
108
|
columnsFrom: string[];
|
118
109
|
tableTo: string;
|
119
110
|
columnsTo: string[];
|
111
|
+
onUpdate?: string | undefined;
|
112
|
+
onDelete?: string | undefined;
|
120
113
|
}>;
|
121
114
|
compositePrimaryKeys: Record<string, {
|
122
115
|
name: string;
|
@@ -135,8 +128,6 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
|
|
135
128
|
columns: Record<string, string>;
|
136
129
|
tables: Record<string, string>;
|
137
130
|
};
|
138
|
-
};
|
139
|
-
validatedPrev: {
|
140
131
|
internal?: {
|
141
132
|
tables: Record<string, {
|
142
133
|
columns: Record<string, {
|
@@ -144,33 +135,35 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
|
|
144
135
|
} | undefined>;
|
145
136
|
} | undefined>;
|
146
137
|
} | undefined;
|
138
|
+
};
|
139
|
+
validatedPrev: {
|
147
140
|
tables: Record<string, {
|
148
141
|
name: string;
|
149
142
|
columns: Record<string, {
|
150
|
-
default?: any;
|
151
|
-
onUpdate?: any;
|
152
|
-
autoincrement?: boolean | undefined;
|
153
143
|
name: string;
|
154
144
|
type: string;
|
155
145
|
primaryKey: boolean;
|
156
146
|
notNull: boolean;
|
147
|
+
default?: any;
|
148
|
+
onUpdate?: any;
|
149
|
+
autoincrement?: boolean | undefined;
|
157
150
|
}>;
|
158
151
|
indexes: Record<string, {
|
159
|
-
using?: "btree" | "hash" | undefined;
|
160
|
-
algorithm?: "default" | "inplace" | "copy" | undefined;
|
161
|
-
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
162
152
|
name: string;
|
163
153
|
columns: string[];
|
164
154
|
isUnique: boolean;
|
155
|
+
using?: "btree" | "hash" | undefined;
|
156
|
+
algorithm?: "default" | "inplace" | "copy" | undefined;
|
157
|
+
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
165
158
|
}>;
|
166
159
|
foreignKeys: Record<string, {
|
167
|
-
onUpdate?: string | undefined;
|
168
|
-
onDelete?: string | undefined;
|
169
160
|
name: string;
|
170
161
|
tableFrom: string;
|
171
162
|
columnsFrom: string[];
|
172
163
|
tableTo: string;
|
173
164
|
columnsTo: string[];
|
165
|
+
onUpdate?: string | undefined;
|
166
|
+
onDelete?: string | undefined;
|
174
167
|
}>;
|
175
168
|
compositePrimaryKeys: Record<string, {
|
176
169
|
name: string;
|
@@ -189,6 +182,13 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
|
|
189
182
|
columns: Record<string, string>;
|
190
183
|
tables: Record<string, string>;
|
191
184
|
};
|
185
|
+
internal?: {
|
186
|
+
tables: Record<string, {
|
187
|
+
columns: Record<string, {
|
188
|
+
isDefaultAnExpression?: boolean | undefined;
|
189
|
+
} | undefined>;
|
190
|
+
} | undefined>;
|
191
|
+
} | undefined;
|
192
192
|
};
|
193
193
|
}>;
|
194
194
|
export declare const prepareAndMigrateMysql: (config: GenerateConfig) => Promise<void>;
|
@@ -197,16 +197,15 @@ export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot
|
|
197
197
|
sqlStatements: string[];
|
198
198
|
statements: import("../../jsonStatements").JsonStatement[];
|
199
199
|
squashedPrev: {
|
200
|
-
enums?: any;
|
201
200
|
tables: Record<string, {
|
202
201
|
name: string;
|
203
202
|
columns: Record<string, {
|
204
|
-
default?: any;
|
205
|
-
autoincrement?: boolean | undefined;
|
206
203
|
name: string;
|
207
204
|
type: string;
|
208
205
|
primaryKey: boolean;
|
209
206
|
notNull: boolean;
|
207
|
+
default?: any;
|
208
|
+
autoincrement?: boolean | undefined;
|
210
209
|
}>;
|
211
210
|
indexes: Record<string, string>;
|
212
211
|
foreignKeys: Record<string, string>;
|
@@ -215,18 +214,18 @@ export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot
|
|
215
214
|
}>;
|
216
215
|
version: "5";
|
217
216
|
dialect: "sqlite";
|
217
|
+
enums?: any;
|
218
218
|
};
|
219
219
|
squashedCur: {
|
220
|
-
enums?: any;
|
221
220
|
tables: Record<string, {
|
222
221
|
name: string;
|
223
222
|
columns: Record<string, {
|
224
|
-
default?: any;
|
225
|
-
autoincrement?: boolean | undefined;
|
226
223
|
name: string;
|
227
224
|
type: string;
|
228
225
|
primaryKey: boolean;
|
229
226
|
notNull: boolean;
|
227
|
+
default?: any;
|
228
|
+
autoincrement?: boolean | undefined;
|
230
229
|
}>;
|
231
230
|
indexes: Record<string, string>;
|
232
231
|
foreignKeys: Record<string, string>;
|
@@ -235,6 +234,7 @@ export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot
|
|
235
234
|
}>;
|
236
235
|
version: "5";
|
237
236
|
dialect: "sqlite";
|
237
|
+
enums?: any;
|
238
238
|
};
|
239
239
|
meta: {
|
240
240
|
schemas: {};
|
@@ -4,30 +4,30 @@ export declare const mysqlPushIntrospect: (db: DB, databaseName: string, filters
|
|
4
4
|
tables: Record<string, {
|
5
5
|
name: string;
|
6
6
|
columns: Record<string, {
|
7
|
-
default?: any;
|
8
|
-
onUpdate?: any;
|
9
|
-
autoincrement?: boolean | undefined;
|
10
7
|
name: string;
|
11
8
|
type: string;
|
12
9
|
primaryKey: boolean;
|
13
10
|
notNull: boolean;
|
11
|
+
default?: any;
|
12
|
+
onUpdate?: any;
|
13
|
+
autoincrement?: boolean | undefined;
|
14
14
|
}>;
|
15
15
|
indexes: Record<string, {
|
16
|
-
using?: "btree" | "hash" | undefined;
|
17
|
-
algorithm?: "default" | "inplace" | "copy" | undefined;
|
18
|
-
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
19
16
|
name: string;
|
20
17
|
columns: string[];
|
21
18
|
isUnique: boolean;
|
19
|
+
using?: "btree" | "hash" | undefined;
|
20
|
+
algorithm?: "default" | "inplace" | "copy" | undefined;
|
21
|
+
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
22
22
|
}>;
|
23
23
|
foreignKeys: Record<string, {
|
24
|
-
onUpdate?: string | undefined;
|
25
|
-
onDelete?: string | undefined;
|
26
24
|
name: string;
|
27
25
|
tableFrom: string;
|
28
26
|
columnsFrom: string[];
|
29
27
|
tableTo: string;
|
30
28
|
columnsTo: string[];
|
29
|
+
onUpdate?: string | undefined;
|
30
|
+
onDelete?: string | undefined;
|
31
31
|
}>;
|
32
32
|
compositePrimaryKeys: Record<string, {
|
33
33
|
name: string;
|
@@ -4,15 +4,15 @@ export declare const pgPushIntrospect: (db: DB, filters: string[], schemaFilters
|
|
4
4
|
tables: Record<string, {
|
5
5
|
name: string;
|
6
6
|
columns: Record<string, {
|
7
|
+
name: string;
|
8
|
+
type: string;
|
9
|
+
primaryKey: boolean;
|
10
|
+
notNull: boolean;
|
7
11
|
isUnique?: any;
|
8
12
|
default?: any;
|
9
13
|
typeSchema?: string | undefined;
|
10
14
|
uniqueName?: string | undefined;
|
11
15
|
nullsNotDistinct?: boolean | undefined;
|
12
|
-
name: string;
|
13
|
-
type: string;
|
14
|
-
primaryKey: boolean;
|
15
|
-
notNull: boolean;
|
16
16
|
}>;
|
17
17
|
indexes: Record<string, {
|
18
18
|
name: string;
|
@@ -20,14 +20,14 @@ export declare const pgPushIntrospect: (db: DB, filters: string[], schemaFilters
|
|
20
20
|
isUnique: boolean;
|
21
21
|
}>;
|
22
22
|
foreignKeys: Record<string, {
|
23
|
-
onUpdate?: string | undefined;
|
24
|
-
onDelete?: string | undefined;
|
25
|
-
schemaTo?: string | undefined;
|
26
23
|
name: string;
|
27
24
|
tableFrom: string;
|
28
25
|
columnsFrom: string[];
|
29
26
|
tableTo: string;
|
30
27
|
columnsTo: string[];
|
28
|
+
onUpdate?: string | undefined;
|
29
|
+
onDelete?: string | undefined;
|
30
|
+
schemaTo?: string | undefined;
|
31
31
|
}>;
|
32
32
|
schema: string;
|
33
33
|
compositePrimaryKeys: Record<string, {
|
@@ -6,31 +6,31 @@ export declare const sqliteIntrospect: (credentials: SqliteCredentials, filters:
|
|
6
6
|
tables: Record<string, {
|
7
7
|
name: string;
|
8
8
|
columns: Record<string, {
|
9
|
-
default?: any;
|
10
|
-
autoincrement?: boolean | undefined;
|
11
9
|
name: string;
|
12
10
|
type: string;
|
13
11
|
primaryKey: boolean;
|
14
12
|
notNull: boolean;
|
13
|
+
default?: any;
|
14
|
+
autoincrement?: boolean | undefined;
|
15
15
|
}>;
|
16
16
|
indexes: Record<string, {
|
17
|
-
where?: string | undefined;
|
18
17
|
name: string;
|
19
18
|
columns: string[];
|
20
19
|
isUnique: boolean;
|
20
|
+
where?: string | undefined;
|
21
21
|
}>;
|
22
22
|
foreignKeys: Record<string, {
|
23
|
-
onUpdate?: string | undefined;
|
24
|
-
onDelete?: string | undefined;
|
25
23
|
name: string;
|
26
24
|
tableFrom: string;
|
27
25
|
columnsFrom: string[];
|
28
26
|
tableTo: string;
|
29
27
|
columnsTo: string[];
|
28
|
+
onUpdate?: string | undefined;
|
29
|
+
onDelete?: string | undefined;
|
30
30
|
}>;
|
31
31
|
compositePrimaryKeys: Record<string, {
|
32
|
-
name?: string | undefined;
|
33
32
|
columns: string[];
|
33
|
+
name?: string | undefined;
|
34
34
|
}>;
|
35
35
|
uniqueConstraints: Record<string, {
|
36
36
|
name: string;
|
@@ -59,31 +59,31 @@ export declare const sqlitePushIntrospect: (db: SQLiteDB, filters: string[]) =>
|
|
59
59
|
tables: Record<string, {
|
60
60
|
name: string;
|
61
61
|
columns: Record<string, {
|
62
|
-
default?: any;
|
63
|
-
autoincrement?: boolean | undefined;
|
64
62
|
name: string;
|
65
63
|
type: string;
|
66
64
|
primaryKey: boolean;
|
67
65
|
notNull: boolean;
|
66
|
+
default?: any;
|
67
|
+
autoincrement?: boolean | undefined;
|
68
68
|
}>;
|
69
69
|
indexes: Record<string, {
|
70
|
-
where?: string | undefined;
|
71
70
|
name: string;
|
72
71
|
columns: string[];
|
73
72
|
isUnique: boolean;
|
73
|
+
where?: string | undefined;
|
74
74
|
}>;
|
75
75
|
foreignKeys: Record<string, {
|
76
|
-
onUpdate?: string | undefined;
|
77
|
-
onDelete?: string | undefined;
|
78
76
|
name: string;
|
79
77
|
tableFrom: string;
|
80
78
|
columnsFrom: string[];
|
81
79
|
tableTo: string;
|
82
80
|
columnsTo: string[];
|
81
|
+
onUpdate?: string | undefined;
|
82
|
+
onDelete?: string | undefined;
|
83
83
|
}>;
|
84
84
|
compositePrimaryKeys: Record<string, {
|
85
|
-
name?: string | undefined;
|
86
85
|
columns: string[];
|
86
|
+
name?: string | undefined;
|
87
87
|
}>;
|
88
88
|
uniqueConstraints: Record<string, {
|
89
89
|
name: string;
|
package/cli/commands/utils.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { MysqlCredentials } from "../validations/mysql";
|
|
2
2
|
import { PostgresCredentials } from "../validations/pg";
|
3
3
|
import { SqliteCredentials } from "../validations/sqlite";
|
4
4
|
import { Casing, CliConfig } from "../validations/common";
|
5
|
-
import type
|
5
|
+
import { type Dialect } from "../../schemaValidator";
|
6
6
|
import { CliCheckConfig, CliConfigGenerate } from "../validations/cli";
|
7
7
|
export declare const safeRegister: () => Promise<{
|
8
8
|
unregister: () => void;
|
@@ -50,6 +50,128 @@ export declare const preparePullConfig: (options: Record<string, unknown>) => Pr
|
|
50
50
|
tablesFilter: string[];
|
51
51
|
schemasFilter: string[];
|
52
52
|
}>;
|
53
|
+
export declare const prepareStudioConfig: (options: Record<string, unknown>) => Promise<{
|
54
|
+
dialect: "postgresql";
|
55
|
+
schema: string | string[];
|
56
|
+
host: string;
|
57
|
+
port: number;
|
58
|
+
credentials: {
|
59
|
+
host: string;
|
60
|
+
user: string;
|
61
|
+
database: string;
|
62
|
+
port?: number | undefined;
|
63
|
+
password?: string | undefined;
|
64
|
+
ssl?: boolean | undefined;
|
65
|
+
} | {
|
66
|
+
url: string;
|
67
|
+
} | {
|
68
|
+
database: string;
|
69
|
+
driver: "aws-data-api";
|
70
|
+
secretArn: string;
|
71
|
+
resourceArn: string;
|
72
|
+
};
|
73
|
+
} | {
|
74
|
+
dialect: "mysql";
|
75
|
+
schema: string | string[];
|
76
|
+
host: string;
|
77
|
+
port: number;
|
78
|
+
credentials: {
|
79
|
+
host: string;
|
80
|
+
user: string;
|
81
|
+
database: string;
|
82
|
+
port?: number | undefined;
|
83
|
+
password?: string | undefined;
|
84
|
+
} | {
|
85
|
+
url: string;
|
86
|
+
};
|
87
|
+
} | {
|
88
|
+
dialect: "sqlite";
|
89
|
+
schema: string | string[];
|
90
|
+
host: string;
|
91
|
+
port: number;
|
92
|
+
credentials: {
|
93
|
+
url: string;
|
94
|
+
driver: "turso";
|
95
|
+
authToken: string;
|
96
|
+
} | {
|
97
|
+
url: string;
|
98
|
+
};
|
99
|
+
}>;
|
100
|
+
export declare const migrateConfig: import("zod").ZodObject<{
|
101
|
+
dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
|
102
|
+
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
103
|
+
migrations: import("zod").ZodOptional<import("zod").ZodObject<{
|
104
|
+
table: import("zod").ZodOptional<import("zod").ZodString>;
|
105
|
+
schema: import("zod").ZodOptional<import("zod").ZodString>;
|
106
|
+
}, "strip", import("zod").ZodTypeAny, {
|
107
|
+
schema?: string | undefined;
|
108
|
+
table?: string | undefined;
|
109
|
+
}, {
|
110
|
+
schema?: string | undefined;
|
111
|
+
table?: string | undefined;
|
112
|
+
}>>;
|
113
|
+
}, "strip", import("zod").ZodTypeAny, {
|
114
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
115
|
+
out: string;
|
116
|
+
migrations?: {
|
117
|
+
schema?: string | undefined;
|
118
|
+
table?: string | undefined;
|
119
|
+
} | undefined;
|
120
|
+
}, {
|
121
|
+
dialect: "postgresql" | "mysql" | "sqlite";
|
122
|
+
out?: string | undefined;
|
123
|
+
migrations?: {
|
124
|
+
schema?: string | undefined;
|
125
|
+
table?: string | undefined;
|
126
|
+
} | undefined;
|
127
|
+
}>;
|
128
|
+
export declare const prepareMigrateConfig: (options: Record<string, unknown>) => Promise<{
|
129
|
+
dialect: "postgresql";
|
130
|
+
out: string;
|
131
|
+
credentials: {
|
132
|
+
host: string;
|
133
|
+
user: string;
|
134
|
+
database: string;
|
135
|
+
port?: number | undefined;
|
136
|
+
password?: string | undefined;
|
137
|
+
ssl?: boolean | undefined;
|
138
|
+
} | {
|
139
|
+
url: string;
|
140
|
+
} | {
|
141
|
+
database: string;
|
142
|
+
driver: "aws-data-api";
|
143
|
+
secretArn: string;
|
144
|
+
resourceArn: string;
|
145
|
+
};
|
146
|
+
schema: string | undefined;
|
147
|
+
table: string | undefined;
|
148
|
+
} | {
|
149
|
+
dialect: "mysql";
|
150
|
+
out: string;
|
151
|
+
credentials: {
|
152
|
+
host: string;
|
153
|
+
user: string;
|
154
|
+
database: string;
|
155
|
+
port?: number | undefined;
|
156
|
+
password?: string | undefined;
|
157
|
+
} | {
|
158
|
+
url: string;
|
159
|
+
};
|
160
|
+
schema: string | undefined;
|
161
|
+
table: string | undefined;
|
162
|
+
} | {
|
163
|
+
dialect: "sqlite";
|
164
|
+
out: string;
|
165
|
+
credentials: {
|
166
|
+
url: string;
|
167
|
+
driver: "turso";
|
168
|
+
authToken: string;
|
169
|
+
} | {
|
170
|
+
url: string;
|
171
|
+
};
|
172
|
+
schema: string | undefined;
|
173
|
+
table: string | undefined;
|
174
|
+
}>;
|
53
175
|
export declare const assertOutFolder: (it: CliCheckConfig) => Promise<{
|
54
176
|
out: string;
|
55
177
|
dialect: Dialect;
|
package/cli/connections.d.ts
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
import type { DB, Proxy, SQLiteDB, SqliteProxy } from "../utils";
|
2
2
|
import type { PostgresCredentials } from "./validations/pg";
|
3
3
|
import type { MysqlCredentials } from "./validations/mysql";
|
4
|
-
import { SqliteCredentials } from "./validations/sqlite";
|
4
|
+
import type { SqliteCredentials } from "./validations/sqlite";
|
5
|
+
import type { MigrationConfig } from "drizzle-orm/migrator";
|
5
6
|
export declare const preparePostgresDB: (credentials: PostgresCredentials) => Promise<DB & {
|
6
7
|
proxy: Proxy;
|
8
|
+
migrate: (config: string | MigrationConfig) => Promise<void>;
|
7
9
|
}>;
|
8
10
|
export declare const connectToMySQL: (it: MysqlCredentials) => Promise<{
|
9
11
|
db: DB;
|
10
12
|
proxy: Proxy;
|
11
13
|
database: string;
|
14
|
+
migrate: (config: MigrationConfig) => Promise<void>;
|
15
|
+
}>;
|
16
|
+
export declare const connectToSQLite: (credentials: SqliteCredentials) => Promise<SQLiteDB & SqliteProxy & {
|
17
|
+
migrate: (config: MigrationConfig) => Promise<void>;
|
12
18
|
}>;
|
13
|
-
export declare const connectToSQLite: (credentials: SqliteCredentials) => Promise<SQLiteDB & SqliteProxy>;
|