drizzle-kit 0.20.17-aec19bb → 0.20.17-b08243d

Sign up to get free protection for your applications and to get access to all the features.
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;
@@ -59,23 +13,19 @@ export type Config = {
59
13
  casing: "camel" | "preserve";
60
14
  };
61
15
  } & ({
16
+ dialect: "sqlite";
62
17
  driver: "turso";
63
18
  dbCredentials: {
64
19
  url: string;
65
20
  authToken?: string;
66
21
  };
67
22
  } | {
68
- driver: "better-sqlite";
69
- dbCredentials: {
70
- url: string;
71
- };
72
- } | {
73
- driver: "libsql";
23
+ dialect: "sqlite";
74
24
  dbCredentials: {
75
25
  url: string;
76
26
  };
77
27
  } | {
78
- driver: "pg";
28
+ dialect: "postgresql";
79
29
  dbCredentials: {
80
30
  host: string;
81
31
  port?: number;
@@ -84,10 +34,18 @@ export type Config = {
84
34
  database: string;
85
35
  ssl?: boolean;
86
36
  } | {
87
- connectionString: string;
37
+ url: string;
88
38
  };
89
39
  } | {
90
- driver: "mysql2";
40
+ dialect: "postgresql";
41
+ driver: "aws-data-api";
42
+ dbCredentials: {
43
+ database: string;
44
+ secretArn: string;
45
+ resourceArn: string;
46
+ };
47
+ } | {
48
+ dialect: "mysql";
91
49
  dbCredentials: {
92
50
  host: string;
93
51
  port?: number;
@@ -95,15 +53,17 @@ export type Config = {
95
53
  password?: string;
96
54
  database: string;
97
55
  } | {
98
- uri: string;
56
+ url: string;
99
57
  };
100
58
  } | {
101
- driver: "d1";
59
+ dialect: "sqlite";
60
+ driver: "d1-http";
102
61
  dbCredentials: {
103
62
  wranglerConfigPath: string;
104
63
  dbName: string;
105
64
  };
106
65
  } | {
66
+ dialect: "sqlite";
107
67
  driver: "expo";
108
68
  } | {});
109
69
  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-aec19bb",
3
+ "version": "0.20.17-b08243d",
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,16 @@
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",
64
+ "@vercel/postgres": "^0.8.0",
62
65
  "ava": "^5.1.0",
63
66
  "better-sqlite3": "^9.4.3",
67
+ "dockerode": "^3.3.4",
68
+ "dotenv": "^16.0.3",
64
69
  "drizzle-kit": "0.20.14",
70
+ "drizzle-orm": "0.30.5-ab9feb7",
65
71
  "esbuild-node-externals": "^1.9.0",
66
72
  "eslint": "^8.57.0",
67
73
  "eslint-config-prettier": "^9.1.0",
@@ -69,7 +75,7 @@
69
75
  "get-port": "^6.1.2",
70
76
  "mysql2": "2.3.3",
71
77
  "pg": "^8.11.3",
72
- "postgres": "^3.3.5",
78
+ "postgres": "^3.4.4",
73
79
  "prettier": "^2.8.1",
74
80
  "tsx": "^3.12.1",
75
81
  "typescript": "^5.4.3",