drizzle-kit 0.20.17-9f0ea64 → 0.20.17-a2979a1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- out?: string | undefined;
24
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
25
- tablesFilter?: string | string[] | undefined;
26
23
  schema: string | string[];
27
24
  dialect: "mysql" | "pg" | "sqlite";
28
25
  breakpoints: boolean;
29
26
  schemaFilter: string | string[];
27
+ driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
28
+ out?: string | undefined;
29
+ tablesFilter?: string | string[] | undefined;
30
30
  }, {
31
+ schema: string | string[];
32
+ dialect: "mysql" | "pg" | "sqlite";
33
+ driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
31
34
  out?: string | undefined;
32
35
  breakpoints?: boolean | undefined;
33
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
34
36
  tablesFilter?: string | string[] | undefined;
35
37
  schemaFilter?: string | string[] | undefined;
36
- schema: string | string[];
37
- dialect: "mysql" | "pg" | "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" | "pg" | "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" | "pg" | "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" | "pg" | "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, {
@@ -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
- out?: string | undefined;
170
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
171
- tablesFilter?: string | string[] | undefined;
172
169
  schema: string | string[];
173
170
  dialect: "mysql" | "pg" | "sqlite";
174
171
  breakpoints: boolean;
175
172
  schemaFilter: string | string[];
173
+ driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
174
+ out?: string | undefined;
175
+ tablesFilter?: string | string[] | undefined;
176
176
  }, {
177
+ schema: string | string[];
178
+ dialect: "mysql" | "pg" | "sqlite";
179
+ driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
177
180
  out?: string | undefined;
178
181
  breakpoints?: boolean | undefined;
179
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
180
182
  tablesFilter?: string | string[] | undefined;
181
183
  schemaFilter?: string | string[] | undefined;
182
- schema: string | string[];
183
- dialect: "mysql" | "pg" | "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,29 +6,23 @@ 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
- uri: import("zod").ZodString;
22
- }, "strip", import("zod").ZodTypeAny, {
23
- uri: string;
24
- }, {
25
- uri: string;
26
- }>, import("zod").ZodObject<{
27
- connectionString: import("zod").ZodString;
21
+ url: import("zod").ZodString;
28
22
  }, "strip", import("zod").ZodTypeAny, {
29
- connectionString: string;
23
+ url: string;
30
24
  }, {
31
- connectionString: string;
25
+ url: string;
32
26
  }>]>;
33
27
  export type MysqlCredentials = TypeOf<typeof mysqlCredentials>;
34
28
  export declare const printCliConnectionIssues: (options: any) => void;
@@ -21,6 +21,7 @@ export declare const outputs: {
21
21
  connection: {
22
22
  driver: () => string;
23
23
  required: () => string;
24
+ awsDataApi: () => void;
24
25
  };
25
26
  };
26
27
  mysql: {
@@ -7,25 +7,40 @@ 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
- connectionString: import("zod").ZodString;
24
+ url: import("zod").ZodString;
25
25
  }, "strip", import("zod").ZodTypeAny, {
26
- connectionString: string;
26
+ url: string;
27
27
  }, {
28
- connectionString: string;
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
+ database: string;
36
+ driver: "aws-data-api";
37
+ secretArn: string;
38
+ resourceArn: string;
39
+ }, {
40
+ database: string;
41
+ driver: "aws-data-api";
42
+ secretArn: string;
43
+ resourceArn: string;
29
44
  }>]>;
30
45
  export type PostgresCredentials = TypeOf<typeof postgresCredentials>;
31
46
  export declare const printConfigConnectionIssues: (options: Record<string, unknown>) => void;
@@ -12,23 +12,11 @@ export declare const sqliteCredentials: import("zod").ZodUnion<[import("zod").Zo
12
12
  driver: "turso";
13
13
  authToken: string;
14
14
  }>, import("zod").ZodObject<{
15
- driver: import("zod").ZodLiteral<"better-sqlite">;
16
15
  url: import("zod").ZodString;
17
16
  }, "strip", import("zod").ZodTypeAny, {
18
17
  url: string;
19
- driver: "better-sqlite";
20
18
  }, {
21
19
  url: string;
22
- driver: "better-sqlite";
23
- }>, import("zod").ZodObject<{
24
- driver: import("zod").ZodLiteral<"libsql">;
25
- url: import("zod").ZodString;
26
- }, "strip", import("zod").ZodTypeAny, {
27
- url: string;
28
- driver: "libsql";
29
- }, {
30
- url: string;
31
- driver: "libsql";
32
20
  }>]>;
33
21
  export type SqliteCredentials = TypeOf<typeof sqliteCredentials>;
34
22
  export declare const printConfigConnectionIssues: (options: Record<string, unknown>) => void;
package/index.d.mts CHANGED
@@ -80,15 +80,15 @@ export type Config = {
80
80
  database: string;
81
81
  ssl?: boolean;
82
82
  } | {
83
- connectionString: string;
83
+ url: string;
84
84
  };
85
85
  } | {
86
86
  dialect: "pg";
87
87
  driver: "aws-data-api";
88
88
  dbCredentials: {
89
- key: string;
90
- secret: string;
91
- id: string;
89
+ database: string;
90
+ secretArn: string;
91
+ resourceArn: string;
92
92
  };
93
93
  } | {
94
94
  dialect: "mysql";
@@ -99,7 +99,7 @@ export type Config = {
99
99
  password?: string;
100
100
  database: string;
101
101
  } | {
102
- uri: string;
102
+ url: string;
103
103
  };
104
104
  } | {
105
105
  dialect: "sqlite";
package/index.d.ts CHANGED
@@ -80,15 +80,15 @@ export type Config = {
80
80
  database: string;
81
81
  ssl?: boolean;
82
82
  } | {
83
- connectionString: string;
83
+ url: string;
84
84
  };
85
85
  } | {
86
86
  dialect: "pg";
87
87
  driver: "aws-data-api";
88
88
  dbCredentials: {
89
- key: string;
90
- secret: string;
91
- id: string;
89
+ database: string;
90
+ secretArn: string;
91
+ resourceArn: string;
92
92
  };
93
93
  } | {
94
94
  dialect: "mysql";
@@ -99,7 +99,7 @@ export type Config = {
99
99
  password?: string;
100
100
  database: string;
101
101
  } | {
102
- uri: string;
102
+ url: string;
103
103
  };
104
104
  } | {
105
105
  dialect: "sqlite";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.17-9f0ea64",
3
+ "version": "0.20.17-a2979a1",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -42,11 +42,13 @@
42
42
  "zod": "^3.20.2"
43
43
  },
44
44
  "devDependencies": {
45
+ "@aws-sdk/client-rds-data": "^3.556.0",
45
46
  "@cloudflare/workers-types": "^4.20230518.0",
46
47
  "@electric-sql/pglite": "^0.1.3",
47
48
  "@libsql/client": "^0.4.2",
48
49
  "@neondatabase/serverless": "^0.9.1",
49
50
  "@originjs/vite-plugin-commonjs": "^1.0.3",
51
+ "@planetscale/database": "^1.16.0",
50
52
  "@types/better-sqlite3": "^7.6.4",
51
53
  "@types/dockerode": "^3.3.28",
52
54
  "@types/glob": "^8.1.0",
@@ -59,6 +61,7 @@
59
61
  "@types/ws": "^8.5.10",
60
62
  "@typescript-eslint/eslint-plugin": "^7.2.0",
61
63
  "@typescript-eslint/parser": "^7.2.0",
64
+ "@vercel/postgres": "^0.8.0",
62
65
  "ava": "^5.1.0",
63
66
  "better-sqlite3": "^9.4.3",
64
67
  "dockerode": "^3.3.4",