drizzle-kit 0.20.17-c347d7b → 0.20.17-d1b2821
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +14976 -16094
- 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 +1 -123
- package/cli/connections.d.ts +2 -7
- 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/views.d.ts +0 -6
- package/index.d.mts +3 -5
- package/index.d.ts +3 -5
- package/package.json +2 -2
- package/payload.js +430 -1096
- package/payload.mjs +233 -899
- package/schemaValidator.d.ts +215 -215
- package/serializer/mysqlSchema.d.ts +890 -890
- package/serializer/pgSchema.d.ts +734 -734
- package/serializer/sqliteSchema.d.ts +457 -457
- package/serializer/studio.d.ts +1 -3
- package/snapshotsDiffer.d.ts +314 -314
- package/utils-studio.js +837 -945
- package/utils-studio.mjs +810 -918
- package/utils.js +214 -839
- package/utils.mjs +189 -814
- package/cli/validations/studio.d.ts +0 -92
@@ -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;
|
31
27
|
isUnique?: any;
|
32
28
|
default?: any;
|
33
29
|
typeSchema?: string | undefined;
|
34
30
|
uniqueName?: string | undefined;
|
35
31
|
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;
|
60
56
|
isUnique?: any;
|
61
57
|
default?: any;
|
62
58
|
typeSchema?: string | undefined;
|
63
59
|
uniqueName?: string | undefined;
|
64
60
|
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,33 +83,40 @@ 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;
|
86
93
|
tables: Record<string, {
|
87
94
|
name: string;
|
88
95
|
columns: Record<string, {
|
96
|
+
default?: any;
|
97
|
+
onUpdate?: any;
|
98
|
+
autoincrement?: boolean | undefined;
|
89
99
|
name: string;
|
90
100
|
type: string;
|
91
101
|
primaryKey: boolean;
|
92
102
|
notNull: boolean;
|
93
|
-
default?: any;
|
94
|
-
onUpdate?: any;
|
95
|
-
autoincrement?: boolean | undefined;
|
96
103
|
}>;
|
97
104
|
indexes: Record<string, {
|
98
|
-
name: string;
|
99
|
-
columns: string[];
|
100
|
-
isUnique: boolean;
|
101
105
|
using?: "btree" | "hash" | undefined;
|
102
106
|
algorithm?: "default" | "inplace" | "copy" | undefined;
|
103
107
|
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
108
|
+
name: string;
|
109
|
+
columns: string[];
|
110
|
+
isUnique: boolean;
|
104
111
|
}>;
|
105
112
|
foreignKeys: Record<string, {
|
113
|
+
onUpdate?: string | undefined;
|
114
|
+
onDelete?: string | undefined;
|
106
115
|
name: string;
|
107
116
|
tableFrom: string;
|
108
117
|
columnsFrom: string[];
|
109
118
|
tableTo: string;
|
110
119
|
columnsTo: string[];
|
111
|
-
onUpdate?: string | undefined;
|
112
|
-
onDelete?: string | undefined;
|
113
120
|
}>;
|
114
121
|
compositePrimaryKeys: Record<string, {
|
115
122
|
name: string;
|
@@ -128,6 +135,8 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
|
|
128
135
|
columns: Record<string, string>;
|
129
136
|
tables: Record<string, string>;
|
130
137
|
};
|
138
|
+
};
|
139
|
+
validatedPrev: {
|
131
140
|
internal?: {
|
132
141
|
tables: Record<string, {
|
133
142
|
columns: Record<string, {
|
@@ -135,35 +144,33 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
|
|
135
144
|
} | undefined>;
|
136
145
|
} | undefined>;
|
137
146
|
} | undefined;
|
138
|
-
};
|
139
|
-
validatedPrev: {
|
140
147
|
tables: Record<string, {
|
141
148
|
name: string;
|
142
149
|
columns: Record<string, {
|
150
|
+
default?: any;
|
151
|
+
onUpdate?: any;
|
152
|
+
autoincrement?: boolean | undefined;
|
143
153
|
name: string;
|
144
154
|
type: string;
|
145
155
|
primaryKey: boolean;
|
146
156
|
notNull: boolean;
|
147
|
-
default?: any;
|
148
|
-
onUpdate?: any;
|
149
|
-
autoincrement?: boolean | undefined;
|
150
157
|
}>;
|
151
158
|
indexes: Record<string, {
|
152
|
-
name: string;
|
153
|
-
columns: string[];
|
154
|
-
isUnique: boolean;
|
155
159
|
using?: "btree" | "hash" | undefined;
|
156
160
|
algorithm?: "default" | "inplace" | "copy" | undefined;
|
157
161
|
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
162
|
+
name: string;
|
163
|
+
columns: string[];
|
164
|
+
isUnique: boolean;
|
158
165
|
}>;
|
159
166
|
foreignKeys: Record<string, {
|
167
|
+
onUpdate?: string | undefined;
|
168
|
+
onDelete?: string | undefined;
|
160
169
|
name: string;
|
161
170
|
tableFrom: string;
|
162
171
|
columnsFrom: string[];
|
163
172
|
tableTo: string;
|
164
173
|
columnsTo: string[];
|
165
|
-
onUpdate?: string | undefined;
|
166
|
-
onDelete?: string | undefined;
|
167
174
|
}>;
|
168
175
|
compositePrimaryKeys: Record<string, {
|
169
176
|
name: string;
|
@@ -182,13 +189,6 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
|
|
182
189
|
columns: Record<string, string>;
|
183
190
|
tables: Record<string, string>;
|
184
191
|
};
|
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,15 +197,16 @@ export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot
|
|
197
197
|
sqlStatements: string[];
|
198
198
|
statements: import("../../jsonStatements").JsonStatement[];
|
199
199
|
squashedPrev: {
|
200
|
+
enums?: any;
|
200
201
|
tables: Record<string, {
|
201
202
|
name: string;
|
202
203
|
columns: Record<string, {
|
204
|
+
default?: any;
|
205
|
+
autoincrement?: boolean | undefined;
|
203
206
|
name: string;
|
204
207
|
type: string;
|
205
208
|
primaryKey: boolean;
|
206
209
|
notNull: boolean;
|
207
|
-
default?: any;
|
208
|
-
autoincrement?: boolean | undefined;
|
209
210
|
}>;
|
210
211
|
indexes: Record<string, string>;
|
211
212
|
foreignKeys: Record<string, string>;
|
@@ -214,18 +215,18 @@ export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot
|
|
214
215
|
}>;
|
215
216
|
version: "5";
|
216
217
|
dialect: "sqlite";
|
217
|
-
enums?: any;
|
218
218
|
};
|
219
219
|
squashedCur: {
|
220
|
+
enums?: any;
|
220
221
|
tables: Record<string, {
|
221
222
|
name: string;
|
222
223
|
columns: Record<string, {
|
224
|
+
default?: any;
|
225
|
+
autoincrement?: boolean | undefined;
|
223
226
|
name: string;
|
224
227
|
type: string;
|
225
228
|
primaryKey: boolean;
|
226
229
|
notNull: boolean;
|
227
|
-
default?: any;
|
228
|
-
autoincrement?: boolean | undefined;
|
229
230
|
}>;
|
230
231
|
indexes: Record<string, string>;
|
231
232
|
foreignKeys: Record<string, string>;
|
@@ -234,7 +235,6 @@ export declare const prepareSQLitePush: (schemaPath: string | string[], snapshot
|
|
234
235
|
}>;
|
235
236
|
version: "5";
|
236
237
|
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;
|
7
10
|
name: string;
|
8
11
|
type: string;
|
9
12
|
primaryKey: boolean;
|
10
13
|
notNull: boolean;
|
11
|
-
default?: any;
|
12
|
-
onUpdate?: any;
|
13
|
-
autoincrement?: boolean | undefined;
|
14
14
|
}>;
|
15
15
|
indexes: Record<string, {
|
16
|
-
name: string;
|
17
|
-
columns: string[];
|
18
|
-
isUnique: boolean;
|
19
16
|
using?: "btree" | "hash" | undefined;
|
20
17
|
algorithm?: "default" | "inplace" | "copy" | undefined;
|
21
18
|
lock?: "default" | "none" | "shared" | "exclusive" | undefined;
|
19
|
+
name: string;
|
20
|
+
columns: string[];
|
21
|
+
isUnique: boolean;
|
22
22
|
}>;
|
23
23
|
foreignKeys: Record<string, {
|
24
|
+
onUpdate?: string | undefined;
|
25
|
+
onDelete?: string | undefined;
|
24
26
|
name: string;
|
25
27
|
tableFrom: string;
|
26
28
|
columnsFrom: string[];
|
27
29
|
tableTo: string;
|
28
30
|
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;
|
11
7
|
isUnique?: any;
|
12
8
|
default?: any;
|
13
9
|
typeSchema?: string | undefined;
|
14
10
|
uniqueName?: string | undefined;
|
15
11
|
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;
|
23
26
|
name: string;
|
24
27
|
tableFrom: string;
|
25
28
|
columnsFrom: string[];
|
26
29
|
tableTo: string;
|
27
30
|
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;
|
9
11
|
name: string;
|
10
12
|
type: string;
|
11
13
|
primaryKey: boolean;
|
12
14
|
notNull: boolean;
|
13
|
-
default?: any;
|
14
|
-
autoincrement?: boolean | undefined;
|
15
15
|
}>;
|
16
16
|
indexes: Record<string, {
|
17
|
+
where?: string | undefined;
|
17
18
|
name: string;
|
18
19
|
columns: string[];
|
19
20
|
isUnique: boolean;
|
20
|
-
where?: string | undefined;
|
21
21
|
}>;
|
22
22
|
foreignKeys: Record<string, {
|
23
|
+
onUpdate?: string | undefined;
|
24
|
+
onDelete?: string | undefined;
|
23
25
|
name: string;
|
24
26
|
tableFrom: string;
|
25
27
|
columnsFrom: string[];
|
26
28
|
tableTo: string;
|
27
29
|
columnsTo: string[];
|
28
|
-
onUpdate?: string | undefined;
|
29
|
-
onDelete?: string | undefined;
|
30
30
|
}>;
|
31
31
|
compositePrimaryKeys: Record<string, {
|
32
|
-
columns: string[];
|
33
32
|
name?: string | undefined;
|
33
|
+
columns: string[];
|
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;
|
62
64
|
name: string;
|
63
65
|
type: string;
|
64
66
|
primaryKey: boolean;
|
65
67
|
notNull: boolean;
|
66
|
-
default?: any;
|
67
|
-
autoincrement?: boolean | undefined;
|
68
68
|
}>;
|
69
69
|
indexes: Record<string, {
|
70
|
+
where?: string | undefined;
|
70
71
|
name: string;
|
71
72
|
columns: string[];
|
72
73
|
isUnique: boolean;
|
73
|
-
where?: string | undefined;
|
74
74
|
}>;
|
75
75
|
foreignKeys: Record<string, {
|
76
|
+
onUpdate?: string | undefined;
|
77
|
+
onDelete?: string | undefined;
|
76
78
|
name: string;
|
77
79
|
tableFrom: string;
|
78
80
|
columnsFrom: string[];
|
79
81
|
tableTo: string;
|
80
82
|
columnsTo: string[];
|
81
|
-
onUpdate?: string | undefined;
|
82
|
-
onDelete?: string | undefined;
|
83
83
|
}>;
|
84
84
|
compositePrimaryKeys: Record<string, {
|
85
|
-
columns: string[];
|
86
85
|
name?: string | undefined;
|
86
|
+
columns: string[];
|
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 {
|
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,128 +50,6 @@ 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
|
-
}>;
|
175
53
|
export declare const assertOutFolder: (it: CliCheckConfig) => Promise<{
|
176
54
|
out: string;
|
177
55
|
dialect: Dialect;
|
package/cli/connections.d.ts
CHANGED
@@ -1,18 +1,13 @@
|
|
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
|
5
|
-
import type { MigrationConfig } from "drizzle-orm/migrator";
|
4
|
+
import { SqliteCredentials } from "./validations/sqlite";
|
6
5
|
export declare const preparePostgresDB: (credentials: PostgresCredentials) => Promise<DB & {
|
7
6
|
proxy: Proxy;
|
8
|
-
migrate: (config: string | MigrationConfig) => Promise<void>;
|
9
7
|
}>;
|
10
8
|
export declare const connectToMySQL: (it: MysqlCredentials) => Promise<{
|
11
9
|
db: DB;
|
12
10
|
proxy: Proxy;
|
13
11
|
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>;
|
18
12
|
}>;
|
13
|
+
export declare const connectToSQLite: (credentials: SqliteCredentials) => Promise<SQLiteDB & SqliteProxy>;
|