drizzle-kit 0.20.17-7f33638 → 0.20.17-80a5bf9

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
+ driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
24
+ out?: string | undefined;
25
+ tablesFilter?: string | string[] | undefined;
23
26
  schema: string | string[];
24
27
  dialect: "mysql" | "pg" | "sqlite";
25
28
  breakpoints: boolean;
26
29
  schemaFilter: string | string[];
27
- out?: string | undefined;
28
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
29
- tablesFilter?: string | string[] | undefined;
30
30
  }, {
31
- schema: string | string[];
32
- dialect: "mysql" | "pg" | "sqlite";
31
+ driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
33
32
  out?: string | undefined;
34
33
  breakpoints?: boolean | undefined;
35
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
36
34
  tablesFilter?: string | string[] | undefined;
37
35
  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;
54
56
  introspect: {
55
57
  casing: "camel" | "preserve";
56
58
  };
57
59
  out: string;
58
60
  breakpoints: boolean;
59
61
  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;
82
84
  out: string;
83
85
  breakpoints: boolean;
84
86
  schemaFilter: string | string[];
85
87
  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[];
106
105
  out?: string | undefined;
107
106
  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;
119
121
  strict: boolean;
120
122
  schema: string | string[];
121
123
  dialect: "mysql" | "pg" | "sqlite";
122
124
  schemaFilter: string | string[];
123
125
  verbose: boolean;
124
- out?: string | undefined;
125
- tablesFilter?: string | string[] | undefined;
126
126
  }, {
127
- schema: string | string[];
128
- dialect: "mysql" | "pg" | "sqlite";
129
127
  strict?: boolean | undefined;
130
128
  out?: string | undefined;
131
129
  tablesFilter?: string | string[] | undefined;
132
130
  schemaFilter?: string | string[] | undefined;
133
131
  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
- host: string;
143
- user: string;
144
- database: string;
145
142
  port?: number | undefined;
146
143
  password?: string | undefined;
147
- }, {
148
144
  host: string;
145
+ user: string;
149
146
  database: string;
147
+ }, {
150
148
  port?: number | undefined;
151
149
  user?: string | undefined;
152
150
  password?: string | undefined;
151
+ host: string;
152
+ database: string;
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
+ driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
170
+ out?: string | undefined;
171
+ tablesFilter?: string | string[] | undefined;
169
172
  schema: string | string[];
170
173
  dialect: "mysql" | "pg" | "sqlite";
171
174
  breakpoints: boolean;
172
175
  schemaFilter: string | string[];
173
- out?: string | undefined;
174
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
175
- tablesFilter?: string | string[] | undefined;
176
176
  }, {
177
- schema: string | string[];
178
- dialect: "mysql" | "pg" | "sqlite";
177
+ driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
179
178
  out?: string | undefined;
180
179
  breakpoints?: boolean | undefined;
181
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
182
180
  tablesFilter?: string | string[] | undefined;
183
181
  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
- host: string;
192
- user: string;
193
- database: string;
194
191
  port?: number | undefined;
195
192
  password?: string | undefined;
196
- }, {
197
193
  host: string;
194
+ user: string;
198
195
  database: string;
196
+ }, {
199
197
  port?: number | undefined;
200
198
  user?: string | undefined;
201
199
  password?: string | undefined;
200
+ host: string;
201
+ database: string;
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
- host: string;
10
- user: string;
11
- database: string;
12
9
  port?: number | undefined;
13
10
  password?: string | undefined;
14
- }, {
15
11
  host: string;
12
+ user: string;
16
13
  database: string;
14
+ }, {
17
15
  port?: number | undefined;
18
16
  user?: string | undefined;
19
17
  password?: string | undefined;
18
+ host: string;
19
+ database: string;
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: {
@@ -1,6 +1,5 @@
1
1
  import { TypeOf } from "zod";
2
2
  export declare const postgresCredentials: import("zod").ZodUnion<[import("zod").ZodObject<{
3
- driver: import("zod").ZodLiteral<"pg">;
4
3
  host: import("zod").ZodString;
5
4
  port: import("zod").ZodOptional<import("zod").ZodNumber>;
6
5
  user: import("zod").ZodDefault<import("zod").ZodString>;
@@ -8,30 +7,40 @@ export declare const postgresCredentials: import("zod").ZodUnion<[import("zod").
8
7
  database: import("zod").ZodString;
9
8
  ssl: import("zod").ZodOptional<import("zod").ZodBoolean>;
10
9
  }, "strip", import("zod").ZodTypeAny, {
11
- driver: "pg";
12
- host: string;
13
- user: string;
14
- database: string;
15
10
  port?: number | undefined;
16
11
  password?: string | undefined;
17
12
  ssl?: boolean | undefined;
18
- }, {
19
- driver: "pg";
20
13
  host: string;
14
+ user: string;
21
15
  database: string;
16
+ }, {
22
17
  port?: number | undefined;
23
18
  user?: string | undefined;
24
19
  password?: string | undefined;
25
20
  ssl?: boolean | undefined;
21
+ host: string;
22
+ database: string;
26
23
  }>, import("zod").ZodObject<{
27
- driver: import("zod").ZodLiteral<"pg">;
28
- connectionString: import("zod").ZodString;
24
+ url: import("zod").ZodString;
29
25
  }, "strip", import("zod").ZodTypeAny, {
30
- driver: "pg";
31
- connectionString: string;
26
+ url: string;
32
27
  }, {
33
- driver: "pg";
34
- 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;
35
44
  }>]>;
36
45
  export type PostgresCredentials = TypeOf<typeof postgresCredentials>;
37
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
@@ -46,7 +46,7 @@ export type DbConnection = {
46
46
  };
47
47
  };
48
48
  export type Config = {
49
- dialect?: Dialect;
49
+ dialect: Dialect;
50
50
  out?: string;
51
51
  breakpoints?: boolean;
52
52
  tablesFilter?: string | string[];
@@ -59,23 +59,19 @@ export type Config = {
59
59
  casing: "camel" | "preserve";
60
60
  };
61
61
  } & ({
62
+ dialect: "sqlite";
62
63
  driver: "turso";
63
64
  dbCredentials: {
64
65
  url: string;
65
66
  authToken?: string;
66
67
  };
67
68
  } | {
68
- driver: "better-sqlite";
69
+ dialect: "sqlite";
69
70
  dbCredentials: {
70
71
  url: string;
71
72
  };
72
73
  } | {
73
- driver: "libsql";
74
- dbCredentials: {
75
- url: string;
76
- };
77
- } | {
78
- driver: "pg";
74
+ dialect: "pg";
79
75
  dbCredentials: {
80
76
  host: string;
81
77
  port?: number;
@@ -84,10 +80,18 @@ export type Config = {
84
80
  database: string;
85
81
  ssl?: boolean;
86
82
  } | {
87
- connectionString: string;
83
+ url: string;
88
84
  };
89
85
  } | {
90
- driver: "mysql2";
86
+ dialect: "pg";
87
+ driver: "aws-data-api";
88
+ dbCredentials: {
89
+ database: string;
90
+ secretArn: string;
91
+ resourceArn: string;
92
+ };
93
+ } | {
94
+ dialect: "mysql";
91
95
  dbCredentials: {
92
96
  host: string;
93
97
  port?: number;
@@ -95,15 +99,17 @@ export type Config = {
95
99
  password?: string;
96
100
  database: string;
97
101
  } | {
98
- uri: string;
102
+ url: string;
99
103
  };
100
104
  } | {
101
- driver: "d1";
105
+ dialect: "sqlite";
106
+ driver: "d1-http";
102
107
  dbCredentials: {
103
108
  wranglerConfigPath: string;
104
109
  dbName: string;
105
110
  };
106
111
  } | {
112
+ dialect: "sqlite";
107
113
  driver: "expo";
108
114
  } | {});
109
115
  export declare function defineConfig(config: Config): Config;
package/index.d.ts CHANGED
@@ -46,7 +46,7 @@ export type DbConnection = {
46
46
  };
47
47
  };
48
48
  export type Config = {
49
- dialect?: Dialect;
49
+ dialect: Dialect;
50
50
  out?: string;
51
51
  breakpoints?: boolean;
52
52
  tablesFilter?: string | string[];
@@ -59,23 +59,19 @@ export type Config = {
59
59
  casing: "camel" | "preserve";
60
60
  };
61
61
  } & ({
62
+ dialect: "sqlite";
62
63
  driver: "turso";
63
64
  dbCredentials: {
64
65
  url: string;
65
66
  authToken?: string;
66
67
  };
67
68
  } | {
68
- driver: "better-sqlite";
69
+ dialect: "sqlite";
69
70
  dbCredentials: {
70
71
  url: string;
71
72
  };
72
73
  } | {
73
- driver: "libsql";
74
- dbCredentials: {
75
- url: string;
76
- };
77
- } | {
78
- driver: "pg";
74
+ dialect: "pg";
79
75
  dbCredentials: {
80
76
  host: string;
81
77
  port?: number;
@@ -84,10 +80,18 @@ export type Config = {
84
80
  database: string;
85
81
  ssl?: boolean;
86
82
  } | {
87
- connectionString: string;
83
+ url: string;
88
84
  };
89
85
  } | {
90
- driver: "mysql2";
86
+ dialect: "pg";
87
+ driver: "aws-data-api";
88
+ dbCredentials: {
89
+ database: string;
90
+ secretArn: string;
91
+ resourceArn: string;
92
+ };
93
+ } | {
94
+ dialect: "mysql";
91
95
  dbCredentials: {
92
96
  host: string;
93
97
  port?: number;
@@ -95,15 +99,17 @@ export type Config = {
95
99
  password?: string;
96
100
  database: string;
97
101
  } | {
98
- uri: string;
102
+ url: string;
99
103
  };
100
104
  } | {
101
- driver: "d1";
105
+ dialect: "sqlite";
106
+ driver: "d1-http";
102
107
  dbCredentials: {
103
108
  wranglerConfigPath: string;
104
109
  dbName: string;
105
110
  };
106
111
  } | {
112
+ dialect: "sqlite";
107
113
  driver: "expo";
108
114
  } | {});
109
115
  export declare function defineConfig(config: Config): Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.17-7f33638",
3
+ "version": "0.20.17-80a5bf9",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -21,9 +21,9 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@esbuild-kit/esm-loader": "^2.5.5",
24
- "@types/json-diff": "^1.0.3",
25
24
  "@hono/node-server": "^1.9.0",
26
25
  "@hono/zod-validator": "^0.2.0",
26
+ "@types/json-diff": "^1.0.3",
27
27
  "camelcase": "^7.0.1",
28
28
  "chalk": "^5.2.0",
29
29
  "commander": "^9.4.1",
@@ -38,13 +38,17 @@
38
38
  "pluralize": "^8.0.0",
39
39
  "semver": "^7.5.4",
40
40
  "superjson": "^2.2.1",
41
+ "ws": "^8.16.0",
41
42
  "zod": "^3.20.2"
42
43
  },
43
44
  "devDependencies": {
45
+ "@aws-sdk/client-rds-data": "^3.556.0",
44
46
  "@cloudflare/workers-types": "^4.20230518.0",
45
47
  "@electric-sql/pglite": "^0.1.3",
46
48
  "@libsql/client": "^0.4.2",
49
+ "@neondatabase/serverless": "^0.9.1",
47
50
  "@originjs/vite-plugin-commonjs": "^1.0.3",
51
+ "@planetscale/database": "^1.16.0",
48
52
  "@types/better-sqlite3": "^7.6.4",
49
53
  "@types/dockerode": "^3.3.28",
50
54
  "@types/glob": "^8.1.0",
@@ -54,14 +58,15 @@
54
58
  "@types/pluralize": "^0.0.33",
55
59
  "@types/semver": "^7.5.5",
56
60
  "@types/uuid": "^9.0.8",
61
+ "@types/ws": "^8.5.10",
57
62
  "@typescript-eslint/eslint-plugin": "^7.2.0",
58
63
  "@typescript-eslint/parser": "^7.2.0",
59
- "dockerode": "^3.3.4",
60
- "dotenv": "^16.0.3",
61
- "drizzle-orm": "0.30.5-ab9feb7",
62
64
  "ava": "^5.1.0",
63
65
  "better-sqlite3": "^9.4.3",
66
+ "dockerode": "^3.3.4",
67
+ "dotenv": "^16.0.3",
64
68
  "drizzle-kit": "0.20.14",
69
+ "drizzle-orm": "0.30.5-ab9feb7",
65
70
  "esbuild-node-externals": "^1.9.0",
66
71
  "eslint": "^8.57.0",
67
72
  "eslint-config-prettier": "^9.1.0",
@@ -69,7 +74,7 @@
69
74
  "get-port": "^6.1.2",
70
75
  "mysql2": "2.3.3",
71
76
  "pg": "^8.11.3",
72
- "postgres": "^3.3.5",
77
+ "postgres": "^3.4.4",
73
78
  "prettier": "^2.8.1",
74
79
  "tsx": "^3.12.1",
75
80
  "typescript": "^5.4.3",