drizzle-kit 0.20.17-388fa1b → 0.20.17-56cc78f
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +23989 -14080
- package/cli/commands/migrate.d.ts +2 -2
- package/cli/commands/pgIntrospect.d.ts +1 -1
- package/cli/commands/utils.d.ts +2 -2
- package/cli/validations/cli.d.ts +21 -21
- package/cli/validations/common.d.ts +13 -13
- package/cli/validations/outputs.d.ts +1 -2
- package/index.d.mts +2 -48
- package/index.d.ts +2 -48
- package/package.json +2 -1
- package/payload.js +46 -46
- package/payload.mjs +46 -46
- package/schemaValidator.d.ts +7 -7
- package/serializer/pgSchema.d.ts +14 -14
- package/serializer/studio.d.ts +1 -1
- package/snapshotsDiffer.d.ts +1 -2
- package/utils-studio.js +8 -8
- package/utils-studio.mjs +8 -8
- package/utils.js +5 -5
- package/utils.mjs +5 -5
@@ -41,7 +41,7 @@ export declare const preparePgPush: (schemaPath: string | string[], snapshot: Pg
|
|
41
41
|
uniqueConstraints: Record<string, string>;
|
42
42
|
}>;
|
43
43
|
version: "6";
|
44
|
-
dialect: "
|
44
|
+
dialect: "postgresql";
|
45
45
|
schemas: Record<string, string>;
|
46
46
|
enums: Record<string, {
|
47
47
|
name: string;
|
@@ -70,7 +70,7 @@ export declare const preparePgPush: (schemaPath: string | string[], snapshot: Pg
|
|
70
70
|
uniqueConstraints: Record<string, string>;
|
71
71
|
}>;
|
72
72
|
version: "6";
|
73
|
-
dialect: "
|
73
|
+
dialect: "postgresql";
|
74
74
|
schemas: Record<string, string>;
|
75
75
|
enums: Record<string, {
|
76
76
|
name: string;
|
package/cli/commands/utils.d.ts
CHANGED
@@ -22,7 +22,7 @@ export declare const preparePushConfig: (options: Record<string, unknown>) => Pr
|
|
22
22
|
dialect: "mysql";
|
23
23
|
credentials: MysqlCredentials;
|
24
24
|
} | {
|
25
|
-
dialect: "
|
25
|
+
dialect: "postgresql";
|
26
26
|
credentials: PostgresCredentials;
|
27
27
|
} | {
|
28
28
|
dialect: "sqlite";
|
@@ -38,7 +38,7 @@ export declare const preparePullConfig: (options: Record<string, unknown>) => Pr
|
|
38
38
|
dialect: "mysql";
|
39
39
|
credentials: MysqlCredentials;
|
40
40
|
} | {
|
41
|
-
dialect: "
|
41
|
+
dialect: "postgresql";
|
42
42
|
credentials: PostgresCredentials;
|
43
43
|
} | {
|
44
44
|
dialect: "sqlite";
|
package/cli/validations/cli.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { TypeOf } from "zod";
|
2
2
|
export declare const cliConfigGenerate: import("zod").ZodObject<{
|
3
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["
|
3
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
|
4
4
|
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
5
5
|
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
6
6
|
config: import("zod").ZodOptional<import("zod").ZodString>;
|
@@ -10,7 +10,7 @@ export declare const cliConfigGenerate: import("zod").ZodObject<{
|
|
10
10
|
}, "strict", import("zod").ZodTypeAny, {
|
11
11
|
name?: string | undefined;
|
12
12
|
schema?: string | string[] | undefined;
|
13
|
-
dialect?: "mysql" | "
|
13
|
+
dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
|
14
14
|
config?: string | undefined;
|
15
15
|
custom: boolean;
|
16
16
|
out: string;
|
@@ -19,18 +19,18 @@ export declare const cliConfigGenerate: import("zod").ZodObject<{
|
|
19
19
|
name?: string | undefined;
|
20
20
|
custom?: boolean | undefined;
|
21
21
|
schema?: string | string[] | undefined;
|
22
|
-
dialect?: "mysql" | "
|
22
|
+
dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
|
23
23
|
config?: string | undefined;
|
24
24
|
out?: string | undefined;
|
25
25
|
breakpoints?: boolean | undefined;
|
26
26
|
}>;
|
27
27
|
export type CliConfigGenerate = TypeOf<typeof cliConfigGenerate>;
|
28
28
|
export declare const pushParams: import("zod").ZodObject<{
|
29
|
-
dialect: import("zod").ZodEnum<["
|
29
|
+
dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
|
30
30
|
schema: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
31
31
|
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
32
32
|
schemaFilters: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
|
33
|
-
driver: import("zod").ZodString
|
33
|
+
driver: import("zod").ZodOptional<import("zod").ZodString>;
|
34
34
|
connectionString: import("zod").ZodOptional<import("zod").ZodString>;
|
35
35
|
uri: import("zod").ZodOptional<import("zod").ZodString>;
|
36
36
|
url: import("zod").ZodOptional<import("zod").ZodString>;
|
@@ -53,13 +53,13 @@ export declare const pushParams: import("zod").ZodObject<{
|
|
53
53
|
password?: string | undefined;
|
54
54
|
database?: string | undefined;
|
55
55
|
uri?: string | undefined;
|
56
|
+
driver?: string | undefined;
|
56
57
|
connectionString?: string | undefined;
|
57
58
|
ssl?: string | undefined;
|
58
59
|
authToken?: string | undefined;
|
59
60
|
tablesFilter?: string | string[] | undefined;
|
60
61
|
verbose?: boolean | undefined;
|
61
|
-
dialect: "mysql" | "
|
62
|
-
driver: string;
|
62
|
+
dialect: "mysql" | "postgresql" | "sqlite";
|
63
63
|
schemaFilters: string | string[];
|
64
64
|
}, {
|
65
65
|
strict?: boolean | undefined;
|
@@ -71,19 +71,19 @@ export declare const pushParams: import("zod").ZodObject<{
|
|
71
71
|
password?: string | undefined;
|
72
72
|
database?: string | undefined;
|
73
73
|
uri?: string | undefined;
|
74
|
+
driver?: string | undefined;
|
74
75
|
connectionString?: string | undefined;
|
75
76
|
ssl?: string | undefined;
|
76
77
|
authToken?: string | undefined;
|
77
78
|
tablesFilter?: string | string[] | undefined;
|
78
79
|
verbose?: boolean | undefined;
|
79
80
|
schemaFilters?: string | string[] | undefined;
|
80
|
-
dialect: "mysql" | "
|
81
|
-
driver: string;
|
81
|
+
dialect: "mysql" | "postgresql" | "sqlite";
|
82
82
|
}>;
|
83
83
|
export type PushParams = TypeOf<typeof pushParams>;
|
84
84
|
export declare const pullParams: import("zod").ZodObject<{
|
85
85
|
config: import("zod").ZodOptional<import("zod").ZodString>;
|
86
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["
|
86
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
|
87
87
|
out: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
88
88
|
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
89
89
|
schemaFilter: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>>;
|
@@ -98,10 +98,10 @@ export declare const pullParams: import("zod").ZodObject<{
|
|
98
98
|
ssl: import("zod").ZodOptional<import("zod").ZodString>;
|
99
99
|
url: import("zod").ZodOptional<import("zod").ZodString>;
|
100
100
|
authToken: import("zod").ZodOptional<import("zod").ZodString>;
|
101
|
-
|
101
|
+
introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
102
102
|
breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
103
103
|
}, "strip", import("zod").ZodTypeAny, {
|
104
|
-
dialect?: "mysql" | "
|
104
|
+
dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
|
105
105
|
url?: string | undefined;
|
106
106
|
host?: string | undefined;
|
107
107
|
port?: string | undefined;
|
@@ -118,9 +118,9 @@ export declare const pullParams: import("zod").ZodObject<{
|
|
118
118
|
out: string;
|
119
119
|
breakpoints: boolean;
|
120
120
|
schemaFilter: string | string[];
|
121
|
-
|
121
|
+
introspectCasing: "camel" | "preserve";
|
122
122
|
}, {
|
123
|
-
dialect?: "mysql" | "
|
123
|
+
dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
|
124
124
|
url?: string | undefined;
|
125
125
|
host?: string | undefined;
|
126
126
|
port?: string | undefined;
|
@@ -137,17 +137,17 @@ export declare const pullParams: import("zod").ZodObject<{
|
|
137
137
|
breakpoints?: boolean | undefined;
|
138
138
|
tablesFilter?: string | string[] | undefined;
|
139
139
|
schemaFilter?: string | string[] | undefined;
|
140
|
-
|
140
|
+
introspectCasing?: "camel" | "preserve" | undefined;
|
141
141
|
}>;
|
142
142
|
export type PullParams = TypeOf<typeof pullParams>;
|
143
143
|
export declare const configCheck: import("zod").ZodObject<{
|
144
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["
|
144
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
|
145
145
|
out: import("zod").ZodOptional<import("zod").ZodString>;
|
146
146
|
}, "strip", import("zod").ZodTypeAny, {
|
147
|
-
dialect?: "mysql" | "
|
147
|
+
dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
|
148
148
|
out?: string | undefined;
|
149
149
|
}, {
|
150
|
-
dialect?: "mysql" | "
|
150
|
+
dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
|
151
151
|
out?: string | undefined;
|
152
152
|
}>;
|
153
153
|
export declare const cliConfigCheck: import("zod").ZodIntersection<import("zod").ZodObject<{
|
@@ -157,13 +157,13 @@ export declare const cliConfigCheck: import("zod").ZodIntersection<import("zod")
|
|
157
157
|
}, {
|
158
158
|
config?: string | undefined;
|
159
159
|
}>, import("zod").ZodObject<{
|
160
|
-
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["
|
160
|
+
dialect: import("zod").ZodOptional<import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>>;
|
161
161
|
out: import("zod").ZodOptional<import("zod").ZodString>;
|
162
162
|
}, "strip", import("zod").ZodTypeAny, {
|
163
|
-
dialect?: "mysql" | "
|
163
|
+
dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
|
164
164
|
out?: string | undefined;
|
165
165
|
}, {
|
166
|
-
dialect?: "mysql" | "
|
166
|
+
dialect?: "mysql" | "postgresql" | "sqlite" | undefined;
|
167
167
|
out?: string | undefined;
|
168
168
|
}>>;
|
169
169
|
export type CliCheckConfig = TypeOf<typeof cliConfigCheck>;
|
@@ -12,7 +12,7 @@ export declare const postgresDriver: import("zod").ZodLiteral<"pg">;
|
|
12
12
|
export declare const mysqlDriver: import("zod").ZodLiteral<"mysql2">;
|
13
13
|
export declare const driver: import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodLiteral<"better-sqlite">, import("zod").ZodLiteral<"turso">, import("zod").ZodLiteral<"libsql">, import("zod").ZodLiteral<"d1">, import("zod").ZodLiteral<"expo">]>, import("zod").ZodLiteral<"pg">, import("zod").ZodLiteral<"mysql2">]>;
|
14
14
|
export declare const configCommonSchema: import("zod").ZodObject<{
|
15
|
-
dialect: import("zod").ZodEnum<["
|
15
|
+
dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
|
16
16
|
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
17
17
|
out: import("zod").ZodOptional<import("zod").ZodString>;
|
18
18
|
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
@@ -20,21 +20,21 @@ export declare const configCommonSchema: import("zod").ZodObject<{
|
|
20
20
|
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
21
21
|
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
22
22
|
}, "strip", import("zod").ZodTypeAny, {
|
23
|
-
driver?: "pg" | "turso" | "
|
23
|
+
driver?: "pg" | "turso" | "expo" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
|
24
24
|
out?: string | undefined;
|
25
25
|
tablesFilter?: string | string[] | undefined;
|
26
26
|
schema: string | string[];
|
27
|
-
dialect: "mysql" | "
|
27
|
+
dialect: "mysql" | "postgresql" | "sqlite";
|
28
28
|
breakpoints: boolean;
|
29
29
|
schemaFilter: string | string[];
|
30
30
|
}, {
|
31
|
-
driver?: "pg" | "turso" | "
|
31
|
+
driver?: "pg" | "turso" | "expo" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
|
32
32
|
out?: string | undefined;
|
33
33
|
breakpoints?: boolean | undefined;
|
34
34
|
tablesFilter?: string | string[] | undefined;
|
35
35
|
schemaFilter?: string | string[] | undefined;
|
36
36
|
schema: string | string[];
|
37
|
-
dialect: "mysql" | "
|
37
|
+
dialect: "mysql" | "postgresql" | "sqlite";
|
38
38
|
}>;
|
39
39
|
export declare const casing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
|
40
40
|
export declare const introspectParams: import("zod").ZodObject<{
|
@@ -108,7 +108,7 @@ export declare const configGenerateSchema: import("zod").ZodObject<{
|
|
108
108
|
}>;
|
109
109
|
export type GenerateSchema = TypeOf<typeof configGenerateSchema>;
|
110
110
|
export declare const configPushSchema: import("zod").ZodObject<{
|
111
|
-
dialect: import("zod").ZodEnum<["
|
111
|
+
dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
|
112
112
|
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
113
113
|
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
114
114
|
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
@@ -120,7 +120,7 @@ export declare const configPushSchema: import("zod").ZodObject<{
|
|
120
120
|
tablesFilter?: string | string[] | undefined;
|
121
121
|
strict: boolean;
|
122
122
|
schema: string | string[];
|
123
|
-
dialect: "mysql" | "
|
123
|
+
dialect: "mysql" | "postgresql" | "sqlite";
|
124
124
|
schemaFilter: string | string[];
|
125
125
|
verbose: boolean;
|
126
126
|
}, {
|
@@ -130,7 +130,7 @@ export declare const configPushSchema: import("zod").ZodObject<{
|
|
130
130
|
schemaFilter?: string | string[] | undefined;
|
131
131
|
verbose?: boolean | undefined;
|
132
132
|
schema: string | string[];
|
133
|
-
dialect: "mysql" | "
|
133
|
+
dialect: "mysql" | "postgresql" | "sqlite";
|
134
134
|
}>;
|
135
135
|
export declare const mysqlConnectionSchema: import("zod").ZodUnion<[import("zod").ZodObject<{
|
136
136
|
host: import("zod").ZodString;
|
@@ -158,7 +158,7 @@ export declare const mysqlConnectionSchema: import("zod").ZodUnion<[import("zod"
|
|
158
158
|
connectionString: string;
|
159
159
|
}>, import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>]>;
|
160
160
|
export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
|
161
|
-
dialect: import("zod").ZodEnum<["
|
161
|
+
dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
|
162
162
|
schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
|
163
163
|
out: import("zod").ZodOptional<import("zod").ZodString>;
|
164
164
|
breakpoints: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
@@ -166,21 +166,21 @@ export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import(
|
|
166
166
|
tablesFilter: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
167
167
|
schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
|
168
168
|
}, "strip", import("zod").ZodTypeAny, {
|
169
|
-
driver?: "pg" | "turso" | "
|
169
|
+
driver?: "pg" | "turso" | "expo" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
|
170
170
|
out?: string | undefined;
|
171
171
|
tablesFilter?: string | string[] | undefined;
|
172
172
|
schema: string | string[];
|
173
|
-
dialect: "mysql" | "
|
173
|
+
dialect: "mysql" | "postgresql" | "sqlite";
|
174
174
|
breakpoints: boolean;
|
175
175
|
schemaFilter: string | string[];
|
176
176
|
}, {
|
177
|
-
driver?: "pg" | "turso" | "
|
177
|
+
driver?: "pg" | "turso" | "expo" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
|
178
178
|
out?: string | undefined;
|
179
179
|
breakpoints?: boolean | undefined;
|
180
180
|
tablesFilter?: string | string[] | undefined;
|
181
181
|
schemaFilter?: string | string[] | undefined;
|
182
182
|
schema: string | string[];
|
183
|
-
dialect: "mysql" | "
|
183
|
+
dialect: "mysql" | "postgresql" | "sqlite";
|
184
184
|
}>, import("zod").ZodUnion<[import("zod").ZodObject<{
|
185
185
|
host: import("zod").ZodString;
|
186
186
|
port: import("zod").ZodOptional<import("zod").ZodNumber>;
|
@@ -4,6 +4,7 @@ export declare const withStyle: {
|
|
4
4
|
errorWarning: (str: string) => string;
|
5
5
|
fullWarning: (str: string) => string;
|
6
6
|
suggestion: (str: string) => string;
|
7
|
+
info: (str: string) => string;
|
7
8
|
};
|
8
9
|
export declare const outputs: {
|
9
10
|
studio: {
|
@@ -15,11 +16,9 @@ export declare const outputs: {
|
|
15
16
|
common: {
|
16
17
|
ambiguousParams: (command: string) => string;
|
17
18
|
schema: (command: string) => string;
|
18
|
-
schemaConfig: (command: string) => string;
|
19
19
|
};
|
20
20
|
postgres: {
|
21
21
|
connection: {
|
22
|
-
driver: () => string;
|
23
22
|
required: () => string;
|
24
23
|
awsDataApi: () => void;
|
25
24
|
};
|
package/index.d.mts
CHANGED
@@ -1,50 +1,4 @@
|
|
1
1
|
import { Dialect } from "./schemaValidator";
|
2
|
-
export type DbConnection = {
|
3
|
-
driver: "turso";
|
4
|
-
dbCredentials: {
|
5
|
-
url: string;
|
6
|
-
authToken?: string;
|
7
|
-
};
|
8
|
-
} | {
|
9
|
-
driver: "better-sqlite";
|
10
|
-
dbCredentials: {
|
11
|
-
url: string;
|
12
|
-
};
|
13
|
-
} | {
|
14
|
-
driver: "libsql";
|
15
|
-
dbCredentials: {
|
16
|
-
url: string;
|
17
|
-
};
|
18
|
-
} | {
|
19
|
-
driver: "d1";
|
20
|
-
dbCredentials: {
|
21
|
-
wranglerConfigPath: string;
|
22
|
-
dbName: string;
|
23
|
-
};
|
24
|
-
} | {
|
25
|
-
driver: "pg";
|
26
|
-
dbCredentials: {
|
27
|
-
host: string;
|
28
|
-
port?: number;
|
29
|
-
user?: string;
|
30
|
-
password?: string;
|
31
|
-
database: string;
|
32
|
-
ssl?: boolean;
|
33
|
-
} | {
|
34
|
-
connectionString: string;
|
35
|
-
};
|
36
|
-
} | {
|
37
|
-
driver: "mysql2";
|
38
|
-
dbCredentials: {
|
39
|
-
host: string;
|
40
|
-
port?: number;
|
41
|
-
user?: string;
|
42
|
-
password?: string;
|
43
|
-
database: string;
|
44
|
-
} | {
|
45
|
-
uri: string;
|
46
|
-
};
|
47
|
-
};
|
48
2
|
export type Config = {
|
49
3
|
dialect: Dialect;
|
50
4
|
out?: string;
|
@@ -71,7 +25,7 @@ export type Config = {
|
|
71
25
|
url: string;
|
72
26
|
};
|
73
27
|
} | {
|
74
|
-
dialect: "
|
28
|
+
dialect: "postgresql";
|
75
29
|
dbCredentials: {
|
76
30
|
host: string;
|
77
31
|
port?: number;
|
@@ -83,7 +37,7 @@ export type Config = {
|
|
83
37
|
url: string;
|
84
38
|
};
|
85
39
|
} | {
|
86
|
-
dialect: "
|
40
|
+
dialect: "postgresql";
|
87
41
|
driver: "aws-data-api";
|
88
42
|
dbCredentials: {
|
89
43
|
database: string;
|
package/index.d.ts
CHANGED
@@ -1,50 +1,4 @@
|
|
1
1
|
import { Dialect } from "./schemaValidator";
|
2
|
-
export type DbConnection = {
|
3
|
-
driver: "turso";
|
4
|
-
dbCredentials: {
|
5
|
-
url: string;
|
6
|
-
authToken?: string;
|
7
|
-
};
|
8
|
-
} | {
|
9
|
-
driver: "better-sqlite";
|
10
|
-
dbCredentials: {
|
11
|
-
url: string;
|
12
|
-
};
|
13
|
-
} | {
|
14
|
-
driver: "libsql";
|
15
|
-
dbCredentials: {
|
16
|
-
url: string;
|
17
|
-
};
|
18
|
-
} | {
|
19
|
-
driver: "d1";
|
20
|
-
dbCredentials: {
|
21
|
-
wranglerConfigPath: string;
|
22
|
-
dbName: string;
|
23
|
-
};
|
24
|
-
} | {
|
25
|
-
driver: "pg";
|
26
|
-
dbCredentials: {
|
27
|
-
host: string;
|
28
|
-
port?: number;
|
29
|
-
user?: string;
|
30
|
-
password?: string;
|
31
|
-
database: string;
|
32
|
-
ssl?: boolean;
|
33
|
-
} | {
|
34
|
-
connectionString: string;
|
35
|
-
};
|
36
|
-
} | {
|
37
|
-
driver: "mysql2";
|
38
|
-
dbCredentials: {
|
39
|
-
host: string;
|
40
|
-
port?: number;
|
41
|
-
user?: string;
|
42
|
-
password?: string;
|
43
|
-
database: string;
|
44
|
-
} | {
|
45
|
-
uri: string;
|
46
|
-
};
|
47
|
-
};
|
48
2
|
export type Config = {
|
49
3
|
dialect: Dialect;
|
50
4
|
out?: string;
|
@@ -71,7 +25,7 @@ export type Config = {
|
|
71
25
|
url: string;
|
72
26
|
};
|
73
27
|
} | {
|
74
|
-
dialect: "
|
28
|
+
dialect: "postgresql";
|
75
29
|
dbCredentials: {
|
76
30
|
host: string;
|
77
31
|
port?: number;
|
@@ -83,7 +37,7 @@ export type Config = {
|
|
83
37
|
url: string;
|
84
38
|
};
|
85
39
|
} | {
|
86
|
-
dialect: "
|
40
|
+
dialect: "postgresql";
|
87
41
|
driver: "aws-data-api";
|
88
42
|
dbCredentials: {
|
89
43
|
database: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.20.17-
|
3
|
+
"version": "0.20.17-56cc78f",
|
4
4
|
"repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
|
5
5
|
"author": "Drizzle Team",
|
6
6
|
"license": "MIT",
|
@@ -61,6 +61,7 @@
|
|
61
61
|
"@types/ws": "^8.5.10",
|
62
62
|
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
63
63
|
"@typescript-eslint/parser": "^7.2.0",
|
64
|
+
"@vercel/postgres": "^0.8.0",
|
64
65
|
"ava": "^5.1.0",
|
65
66
|
"better-sqlite3": "^9.4.3",
|
66
67
|
"dockerode": "^3.3.4",
|