drizzle-kit 0.20.17-7f33638 → 0.20.17-9f0ea64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,29 +7,24 @@ 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
24
  connectionString: import("zod").ZodString;
29
25
  }, "strip", import("zod").ZodTypeAny, {
30
- driver: "pg";
31
26
  connectionString: string;
32
27
  }, {
33
- driver: "pg";
34
28
  connectionString: string;
35
29
  }>]>;
36
30
  export type PostgresCredentials = TypeOf<typeof postgresCredentials>;
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
- dbCredentials: {
70
- url: string;
71
- };
72
- } | {
73
- driver: "libsql";
69
+ dialect: "sqlite";
74
70
  dbCredentials: {
75
71
  url: string;
76
72
  };
77
73
  } | {
78
- driver: "pg";
74
+ dialect: "pg";
79
75
  dbCredentials: {
80
76
  host: string;
81
77
  port?: number;
@@ -87,7 +83,15 @@ export type Config = {
87
83
  connectionString: string;
88
84
  };
89
85
  } | {
90
- driver: "mysql2";
86
+ dialect: "pg";
87
+ driver: "aws-data-api";
88
+ dbCredentials: {
89
+ key: string;
90
+ secret: string;
91
+ id: string;
92
+ };
93
+ } | {
94
+ dialect: "mysql";
91
95
  dbCredentials: {
92
96
  host: string;
93
97
  port?: number;
@@ -98,12 +102,14 @@ export type Config = {
98
102
  uri: 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
- dbCredentials: {
70
- url: string;
71
- };
72
- } | {
73
- driver: "libsql";
69
+ dialect: "sqlite";
74
70
  dbCredentials: {
75
71
  url: string;
76
72
  };
77
73
  } | {
78
- driver: "pg";
74
+ dialect: "pg";
79
75
  dbCredentials: {
80
76
  host: string;
81
77
  port?: number;
@@ -87,7 +83,15 @@ export type Config = {
87
83
  connectionString: string;
88
84
  };
89
85
  } | {
90
- driver: "mysql2";
86
+ dialect: "pg";
87
+ driver: "aws-data-api";
88
+ dbCredentials: {
89
+ key: string;
90
+ secret: string;
91
+ id: string;
92
+ };
93
+ } | {
94
+ dialect: "mysql";
91
95
  dbCredentials: {
92
96
  host: string;
93
97
  port?: number;
@@ -98,12 +102,14 @@ export type Config = {
98
102
  uri: 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-9f0ea64",
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,12 +38,14 @@
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": {
44
45
  "@cloudflare/workers-types": "^4.20230518.0",
45
46
  "@electric-sql/pglite": "^0.1.3",
46
47
  "@libsql/client": "^0.4.2",
48
+ "@neondatabase/serverless": "^0.9.1",
47
49
  "@originjs/vite-plugin-commonjs": "^1.0.3",
48
50
  "@types/better-sqlite3": "^7.6.4",
49
51
  "@types/dockerode": "^3.3.28",
@@ -54,14 +56,15 @@
54
56
  "@types/pluralize": "^0.0.33",
55
57
  "@types/semver": "^7.5.5",
56
58
  "@types/uuid": "^9.0.8",
59
+ "@types/ws": "^8.5.10",
57
60
  "@typescript-eslint/eslint-plugin": "^7.2.0",
58
61
  "@typescript-eslint/parser": "^7.2.0",
59
- "dockerode": "^3.3.4",
60
- "dotenv": "^16.0.3",
61
- "drizzle-orm": "0.30.5-ab9feb7",
62
62
  "ava": "^5.1.0",
63
63
  "better-sqlite3": "^9.4.3",
64
+ "dockerode": "^3.3.4",
65
+ "dotenv": "^16.0.3",
64
66
  "drizzle-kit": "0.20.14",
67
+ "drizzle-orm": "0.30.5-ab9feb7",
65
68
  "esbuild-node-externals": "^1.9.0",
66
69
  "eslint": "^8.57.0",
67
70
  "eslint-config-prettier": "^9.1.0",
@@ -69,7 +72,7 @@
69
72
  "get-port": "^6.1.2",
70
73
  "mysql2": "2.3.3",
71
74
  "pg": "^8.11.3",
72
- "postgres": "^3.3.5",
75
+ "postgres": "^3.4.4",
73
76
  "prettier": "^2.8.1",
74
77
  "tsx": "^3.12.1",
75
78
  "typescript": "^5.4.3",