drizzle-kit 0.20.17-d1b2821 → 0.20.17-dc2e9cd

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,33 +8,33 @@ export type Commands = "introspect" | "generate" | "check" | "up" | "drop" | "pu
8
8
  */
9
9
  export declare const assertCollisions: (options: Record<string, unknown>, command: Commands, inputWhitelist?: string[]) => "config" | "cli";
10
10
  export declare const sqliteDriver: import("zod").ZodUnion<[import("zod").ZodLiteral<"better-sqlite">, import("zod").ZodLiteral<"turso">, import("zod").ZodLiteral<"libsql">, import("zod").ZodLiteral<"d1">, import("zod").ZodLiteral<"expo">]>;
11
- export declare const postgresDriver: import("zod").ZodLiteral<"pg">;
11
+ export declare const postgresDriver: import("zod").ZodLiteral<"aws-data-api">;
12
12
  export declare const mysqlDriver: import("zod").ZodLiteral<"mysql2">;
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">]>;
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<"aws-data-api">, import("zod").ZodLiteral<"mysql2">]>;
14
14
  export declare const configCommonSchema: import("zod").ZodObject<{
15
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>;
19
- driver: import("zod").ZodOptional<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">]>>;
19
+ driver: import("zod").ZodOptional<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<"aws-data-api">, import("zod").ZodLiteral<"mysql2">]>>;
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" | "expo" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
24
- out?: string | undefined;
25
- tablesFilter?: string | string[] | undefined;
26
23
  schema: string | string[];
27
24
  dialect: "mysql" | "postgresql" | "sqlite";
28
25
  breakpoints: boolean;
29
26
  schemaFilter: string | string[];
27
+ out?: string | undefined;
28
+ driver?: "better-sqlite" | "turso" | "libsql" | "d1" | "expo" | "aws-data-api" | "mysql2" | undefined;
29
+ tablesFilter?: string | string[] | undefined;
30
30
  }, {
31
- driver?: "pg" | "turso" | "expo" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
31
+ schema: string | string[];
32
+ dialect: "mysql" | "postgresql" | "sqlite";
32
33
  out?: string | undefined;
33
34
  breakpoints?: boolean | undefined;
35
+ driver?: "better-sqlite" | "turso" | "libsql" | "d1" | "expo" | "aws-data-api" | "mysql2" | undefined;
34
36
  tablesFilter?: string | string[] | undefined;
35
37
  schemaFilter?: string | string[] | undefined;
36
- schema: string | string[];
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<{
@@ -51,14 +51,14 @@ export declare const introspectParams: import("zod").ZodObject<{
51
51
  casing?: "camel" | "preserve" | undefined;
52
52
  }>>;
53
53
  }, "strip", import("zod").ZodTypeAny, {
54
- schema?: string | string[] | undefined;
55
- tablesFilter?: string | string[] | undefined;
56
54
  introspect: {
57
55
  casing: "camel" | "preserve";
58
56
  };
59
57
  out: string;
60
58
  breakpoints: boolean;
61
59
  schemaFilter: string | string[];
60
+ schema?: string | string[] | undefined;
61
+ tablesFilter?: string | string[] | undefined;
62
62
  }, {
63
63
  schema?: string | string[] | undefined;
64
64
  introspect?: {
@@ -79,12 +79,12 @@ export declare const configIntrospectCliSchema: import("zod").ZodObject<{
79
79
  schemaFilter: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>>;
80
80
  introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
81
81
  }, "strip", import("zod").ZodTypeAny, {
82
- schema?: string | string[] | undefined;
83
- tablesFilter?: string | string[] | undefined;
84
82
  out: string;
85
83
  breakpoints: boolean;
86
84
  schemaFilter: string | string[];
87
85
  introspectCasing: "camel" | "preserve";
86
+ schema?: string | string[] | undefined;
87
+ tablesFilter?: string | string[] | undefined;
88
88
  }, {
89
89
  schema?: string | string[] | undefined;
90
90
  out?: string | undefined;
@@ -102,9 +102,9 @@ export declare const configGenerateSchema: import("zod").ZodObject<{
102
102
  out: string;
103
103
  breakpoints: boolean;
104
104
  }, {
105
+ schema: string | string[];
105
106
  out?: string | undefined;
106
107
  breakpoints?: boolean | undefined;
107
- schema: string | string[];
108
108
  }>;
109
109
  export type GenerateSchema = TypeOf<typeof configGenerateSchema>;
110
110
  export declare const configPushSchema: import("zod").ZodObject<{
@@ -116,21 +116,21 @@ export declare const configPushSchema: import("zod").ZodObject<{
116
116
  strict: import("zod").ZodDefault<import("zod").ZodBoolean>;
117
117
  out: import("zod").ZodOptional<import("zod").ZodString>;
118
118
  }, "strip", import("zod").ZodTypeAny, {
119
- out?: string | undefined;
120
- tablesFilter?: string | string[] | undefined;
121
119
  strict: boolean;
122
120
  schema: string | string[];
123
121
  dialect: "mysql" | "postgresql" | "sqlite";
124
122
  schemaFilter: string | string[];
125
123
  verbose: boolean;
124
+ out?: string | undefined;
125
+ tablesFilter?: string | string[] | undefined;
126
126
  }, {
127
+ schema: string | string[];
128
+ dialect: "mysql" | "postgresql" | "sqlite";
127
129
  strict?: boolean | undefined;
128
130
  out?: string | undefined;
129
131
  tablesFilter?: string | string[] | undefined;
130
132
  schemaFilter?: string | string[] | undefined;
131
133
  verbose?: boolean | undefined;
132
- schema: string | string[];
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;
@@ -139,17 +139,17 @@ export declare const mysqlConnectionSchema: import("zod").ZodUnion<[import("zod"
139
139
  password: import("zod").ZodOptional<import("zod").ZodString>;
140
140
  database: import("zod").ZodString;
141
141
  }, "strip", import("zod").ZodTypeAny, {
142
- port?: number | undefined;
143
- password?: string | undefined;
144
142
  host: string;
145
143
  user: string;
146
144
  database: string;
147
- }, {
148
145
  port?: number | undefined;
149
- user?: string | undefined;
150
146
  password?: string | undefined;
147
+ }, {
151
148
  host: string;
152
149
  database: string;
150
+ port?: number | undefined;
151
+ user?: string | undefined;
152
+ password?: string | undefined;
153
153
  }>, import("zod").ZodObject<{
154
154
  connectionString: import("zod").ZodString;
155
155
  }, "strip", import("zod").ZodTypeAny, {
@@ -162,25 +162,25 @@ export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import(
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>;
165
- driver: import("zod").ZodOptional<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">]>>;
165
+ driver: import("zod").ZodOptional<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<"aws-data-api">, import("zod").ZodLiteral<"mysql2">]>>;
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" | "expo" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
170
- out?: string | undefined;
171
- tablesFilter?: string | string[] | undefined;
172
169
  schema: string | string[];
173
170
  dialect: "mysql" | "postgresql" | "sqlite";
174
171
  breakpoints: boolean;
175
172
  schemaFilter: string | string[];
173
+ out?: string | undefined;
174
+ driver?: "better-sqlite" | "turso" | "libsql" | "d1" | "expo" | "aws-data-api" | "mysql2" | undefined;
175
+ tablesFilter?: string | string[] | undefined;
176
176
  }, {
177
- driver?: "pg" | "turso" | "expo" | "mysql2" | "libsql" | "better-sqlite" | "d1" | undefined;
177
+ schema: string | string[];
178
+ dialect: "mysql" | "postgresql" | "sqlite";
178
179
  out?: string | undefined;
179
180
  breakpoints?: boolean | undefined;
181
+ driver?: "better-sqlite" | "turso" | "libsql" | "d1" | "expo" | "aws-data-api" | "mysql2" | undefined;
180
182
  tablesFilter?: string | string[] | undefined;
181
183
  schemaFilter?: string | string[] | undefined;
182
- schema: string | string[];
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>;
@@ -188,17 +188,17 @@ export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import(
188
188
  password: import("zod").ZodOptional<import("zod").ZodString>;
189
189
  database: import("zod").ZodString;
190
190
  }, "strip", import("zod").ZodTypeAny, {
191
- port?: number | undefined;
192
- password?: string | undefined;
193
191
  host: string;
194
192
  user: string;
195
193
  database: string;
196
- }, {
197
194
  port?: number | undefined;
198
- user?: string | undefined;
199
195
  password?: string | undefined;
196
+ }, {
200
197
  host: string;
201
198
  database: string;
199
+ port?: number | undefined;
200
+ user?: string | undefined;
201
+ password?: string | undefined;
202
202
  }>, import("zod").ZodObject<{
203
203
  connectionString: import("zod").ZodString;
204
204
  }, "strip", import("zod").ZodTypeAny, {
@@ -6,17 +6,17 @@ export declare const mysqlCredentials: import("zod").ZodUnion<[import("zod").Zod
6
6
  password: import("zod").ZodOptional<import("zod").ZodString>;
7
7
  database: import("zod").ZodString;
8
8
  }, "strip", import("zod").ZodTypeAny, {
9
- port?: number | undefined;
10
- password?: string | undefined;
11
9
  host: string;
12
10
  user: string;
13
11
  database: string;
14
- }, {
15
12
  port?: number | undefined;
16
- user?: string | undefined;
17
13
  password?: string | undefined;
14
+ }, {
18
15
  host: string;
19
16
  database: string;
17
+ port?: number | undefined;
18
+ user?: string | undefined;
19
+ password?: string | undefined;
20
20
  }>, import("zod").ZodObject<{
21
21
  url: import("zod").ZodString;
22
22
  }, "strip", import("zod").ZodTypeAny, {
@@ -7,19 +7,19 @@ export declare const postgresCredentials: import("zod").ZodUnion<[import("zod").
7
7
  database: import("zod").ZodString;
8
8
  ssl: import("zod").ZodOptional<import("zod").ZodBoolean>;
9
9
  }, "strip", import("zod").ZodTypeAny, {
10
+ host: string;
11
+ user: string;
12
+ database: string;
10
13
  port?: number | undefined;
11
14
  password?: string | undefined;
12
15
  ssl?: boolean | undefined;
16
+ }, {
13
17
  host: string;
14
- user: string;
15
18
  database: string;
16
- }, {
17
19
  port?: number | undefined;
18
20
  user?: string | undefined;
19
21
  password?: string | undefined;
20
22
  ssl?: boolean | undefined;
21
- host: string;
22
- database: string;
23
23
  }>, import("zod").ZodObject<{
24
24
  url: import("zod").ZodString;
25
25
  }, "strip", import("zod").ZodTypeAny, {
@@ -32,13 +32,13 @@ export declare const postgresCredentials: import("zod").ZodUnion<[import("zod").
32
32
  secretArn: import("zod").ZodString;
33
33
  resourceArn: import("zod").ZodString;
34
34
  }, "strip", import("zod").ZodTypeAny, {
35
- database: string;
36
35
  driver: "aws-data-api";
36
+ database: string;
37
37
  secretArn: string;
38
38
  resourceArn: string;
39
39
  }, {
40
- database: string;
41
40
  driver: "aws-data-api";
41
+ database: string;
42
42
  secretArn: string;
43
43
  resourceArn: string;
44
44
  }>]>;
@@ -0,0 +1,92 @@
1
+ import { TypeOf } from "zod";
2
+ export declare const credentials: import("zod").ZodIntersection<import("zod").ZodUnion<[import("zod").ZodObject<{
3
+ host: import("zod").ZodString;
4
+ port: import("zod").ZodOptional<import("zod").ZodNumber>;
5
+ user: import("zod").ZodDefault<import("zod").ZodString>;
6
+ password: import("zod").ZodOptional<import("zod").ZodString>;
7
+ database: import("zod").ZodString;
8
+ ssl: import("zod").ZodOptional<import("zod").ZodBoolean>;
9
+ }, "strip", import("zod").ZodTypeAny, {
10
+ host: string;
11
+ user: string;
12
+ database: string;
13
+ port?: number | undefined;
14
+ password?: string | undefined;
15
+ ssl?: boolean | undefined;
16
+ }, {
17
+ host: string;
18
+ database: string;
19
+ port?: number | undefined;
20
+ user?: string | undefined;
21
+ password?: string | undefined;
22
+ ssl?: boolean | undefined;
23
+ }>, import("zod").ZodObject<{
24
+ url: import("zod").ZodString;
25
+ }, "strip", import("zod").ZodTypeAny, {
26
+ url: string;
27
+ }, {
28
+ url: string;
29
+ }>, import("zod").ZodObject<{
30
+ driver: import("zod").ZodLiteral<"aws-data-api">;
31
+ database: import("zod").ZodString;
32
+ secretArn: import("zod").ZodString;
33
+ resourceArn: import("zod").ZodString;
34
+ }, "strip", import("zod").ZodTypeAny, {
35
+ driver: "aws-data-api";
36
+ database: string;
37
+ secretArn: string;
38
+ resourceArn: string;
39
+ }, {
40
+ driver: "aws-data-api";
41
+ database: string;
42
+ secretArn: string;
43
+ resourceArn: string;
44
+ }>]>, import("zod").ZodUnion<[import("zod").ZodObject<{
45
+ host: import("zod").ZodString;
46
+ port: import("zod").ZodOptional<import("zod").ZodNumber>;
47
+ user: import("zod").ZodDefault<import("zod").ZodString>;
48
+ password: import("zod").ZodOptional<import("zod").ZodString>;
49
+ database: import("zod").ZodString;
50
+ }, "strip", import("zod").ZodTypeAny, {
51
+ host: string;
52
+ user: string;
53
+ database: string;
54
+ port?: number | undefined;
55
+ password?: string | undefined;
56
+ }, {
57
+ host: string;
58
+ database: string;
59
+ port?: number | undefined;
60
+ user?: string | undefined;
61
+ password?: string | undefined;
62
+ }>, import("zod").ZodObject<{
63
+ url: import("zod").ZodString;
64
+ }, "strip", import("zod").ZodTypeAny, {
65
+ url: string;
66
+ }, {
67
+ url: string;
68
+ }>]>>;
69
+ export type Credentials = TypeOf<typeof credentials>;
70
+ export declare const studioCliParams: import("zod").ZodObject<{
71
+ port: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
72
+ host: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
73
+ config: import("zod").ZodOptional<import("zod").ZodString>;
74
+ }, "strip", import("zod").ZodTypeAny, {
75
+ host: string;
76
+ port: number;
77
+ config?: string | undefined;
78
+ }, {
79
+ config?: string | undefined;
80
+ host?: string | undefined;
81
+ port?: number | undefined;
82
+ }>;
83
+ export declare const studioConfig: import("zod").ZodObject<{
84
+ dialect: import("zod").ZodEnum<["postgresql", "mysql", "sqlite"]>;
85
+ schema: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString, "many">]>;
86
+ }, "strip", import("zod").ZodTypeAny, {
87
+ schema: string | string[];
88
+ dialect: "mysql" | "postgresql" | "sqlite";
89
+ }, {
90
+ schema: string | string[];
91
+ dialect: "mysql" | "postgresql" | "sqlite";
92
+ }>;
package/cli/views.d.ts CHANGED
@@ -48,6 +48,12 @@ export declare class IntrospectProgress extends TaskView {
48
48
  private statusText;
49
49
  render(): string;
50
50
  }
51
+ export declare class MigrateProgress extends TaskView {
52
+ private readonly spinner;
53
+ private timeout;
54
+ constructor();
55
+ render(status: "pending" | "done"): string;
56
+ }
51
57
  export declare class DropMigrationView<T extends {
52
58
  tag: string;
53
59
  }> extends Prompt<T> {
package/index.d.mts CHANGED
@@ -1,4 +1,6 @@
1
- import { Dialect } from "./schemaValidator";
1
+ import type { Driver } from "./cli/validations/common";
2
+ import type { Dialect } from "./schemaValidator";
3
+ type Verify<T, U extends T> = T extends U ? U : never;
2
4
  export type Config = {
3
5
  dialect: Dialect;
4
6
  out?: string;
@@ -8,13 +10,16 @@ export type Config = {
8
10
  schema?: string | string[];
9
11
  verbose?: boolean;
10
12
  strict?: boolean;
11
- } & {
13
+ migrations?: {
14
+ table?: string;
15
+ schema?: string;
16
+ };
12
17
  introspect?: {
13
18
  casing: "camel" | "preserve";
14
19
  };
15
20
  } & ({
16
- dialect: "sqlite";
17
- driver: "turso";
21
+ dialect: Verify<Dialect, "sqlite">;
22
+ driver: Verify<Driver, "turso">;
18
23
  dbCredentials: {
19
24
  url: string;
20
25
  authToken?: string;
@@ -25,7 +30,7 @@ export type Config = {
25
30
  url: string;
26
31
  };
27
32
  } | {
28
- dialect: "postgresql";
33
+ dialect: Verify<Dialect, "postgresql">;
29
34
  dbCredentials: {
30
35
  host: string;
31
36
  port?: number;
@@ -37,15 +42,15 @@ export type Config = {
37
42
  url: string;
38
43
  };
39
44
  } | {
40
- dialect: "postgresql";
41
- driver: "aws-data-api";
45
+ dialect: Verify<Dialect, "postgresql">;
46
+ driver: Verify<Driver, "aws-data-api">;
42
47
  dbCredentials: {
43
48
  database: string;
44
49
  secretArn: string;
45
50
  resourceArn: string;
46
51
  };
47
52
  } | {
48
- dialect: "mysql";
53
+ dialect: Verify<Dialect, "mysql">;
49
54
  dbCredentials: {
50
55
  host: string;
51
56
  port?: number;
@@ -56,14 +61,15 @@ export type Config = {
56
61
  url: string;
57
62
  };
58
63
  } | {
59
- dialect: "sqlite";
60
- driver: "d1-http";
64
+ dialect: Verify<Dialect, "sqlite">;
65
+ driver: Verify<Driver, "d1">;
61
66
  dbCredentials: {
62
67
  wranglerConfigPath: string;
63
68
  dbName: string;
64
69
  };
65
70
  } | {
66
- dialect: "sqlite";
67
- driver: "expo";
71
+ dialect: Verify<Dialect, "sqlite">;
72
+ driver: Verify<Driver, "expo">;
68
73
  } | {});
69
74
  export declare function defineConfig(config: Config): Config;
75
+ export {};
package/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
- import { Dialect } from "./schemaValidator";
1
+ import type { Driver } from "./cli/validations/common";
2
+ import type { Dialect } from "./schemaValidator";
3
+ type Verify<T, U extends T> = T extends U ? U : never;
2
4
  export type Config = {
3
5
  dialect: Dialect;
4
6
  out?: string;
@@ -8,13 +10,16 @@ export type Config = {
8
10
  schema?: string | string[];
9
11
  verbose?: boolean;
10
12
  strict?: boolean;
11
- } & {
13
+ migrations?: {
14
+ table?: string;
15
+ schema?: string;
16
+ };
12
17
  introspect?: {
13
18
  casing: "camel" | "preserve";
14
19
  };
15
20
  } & ({
16
- dialect: "sqlite";
17
- driver: "turso";
21
+ dialect: Verify<Dialect, "sqlite">;
22
+ driver: Verify<Driver, "turso">;
18
23
  dbCredentials: {
19
24
  url: string;
20
25
  authToken?: string;
@@ -25,7 +30,7 @@ export type Config = {
25
30
  url: string;
26
31
  };
27
32
  } | {
28
- dialect: "postgresql";
33
+ dialect: Verify<Dialect, "postgresql">;
29
34
  dbCredentials: {
30
35
  host: string;
31
36
  port?: number;
@@ -37,15 +42,15 @@ export type Config = {
37
42
  url: string;
38
43
  };
39
44
  } | {
40
- dialect: "postgresql";
41
- driver: "aws-data-api";
45
+ dialect: Verify<Dialect, "postgresql">;
46
+ driver: Verify<Driver, "aws-data-api">;
42
47
  dbCredentials: {
43
48
  database: string;
44
49
  secretArn: string;
45
50
  resourceArn: string;
46
51
  };
47
52
  } | {
48
- dialect: "mysql";
53
+ dialect: Verify<Dialect, "mysql">;
49
54
  dbCredentials: {
50
55
  host: string;
51
56
  port?: number;
@@ -56,14 +61,15 @@ export type Config = {
56
61
  url: string;
57
62
  };
58
63
  } | {
59
- dialect: "sqlite";
60
- driver: "d1-http";
64
+ dialect: Verify<Dialect, "sqlite">;
65
+ driver: Verify<Driver, "d1">;
61
66
  dbCredentials: {
62
67
  wranglerConfigPath: string;
63
68
  dbName: string;
64
69
  };
65
70
  } | {
66
- dialect: "sqlite";
67
- driver: "expo";
71
+ dialect: Verify<Dialect, "sqlite">;
72
+ driver: Verify<Driver, "expo">;
68
73
  } | {});
69
74
  export declare function defineConfig(config: Config): Config;
75
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.17-d1b2821",
3
+ "version": "0.20.17-dc2e9cd",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -67,7 +67,7 @@
67
67
  "dockerode": "^3.3.4",
68
68
  "dotenv": "^16.0.3",
69
69
  "drizzle-kit": "0.20.14",
70
- "drizzle-orm": "0.30.5-ab9feb7",
70
+ "drizzle-orm": "0.30.9",
71
71
  "esbuild-node-externals": "^1.9.0",
72
72
  "eslint": "^8.57.0",
73
73
  "eslint-config-prettier": "^9.1.0",