drizzle-kit 0.20.17-e041df8 → 0.20.17-e0821c1

Sign up to get free protection for your applications and to get access to all the features.
package/index.d.mts CHANGED
@@ -1,52 +1,5 @@
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
1
  export type Config = {
49
- dialect: Dialect;
2
+ dialect: "postgresql" | "mysql" | "sqlite";
50
3
  out?: string;
51
4
  breakpoints?: boolean;
52
5
  tablesFilter?: string | string[];
@@ -54,7 +7,10 @@ export type Config = {
54
7
  schema?: string | string[];
55
8
  verbose?: boolean;
56
9
  strict?: boolean;
57
- } & {
10
+ migrations?: {
11
+ table?: string;
12
+ schema?: string;
13
+ };
58
14
  introspect?: {
59
15
  casing: "camel" | "preserve";
60
16
  };
@@ -71,7 +27,7 @@ export type Config = {
71
27
  url: string;
72
28
  };
73
29
  } | {
74
- dialect: "pg";
30
+ dialect: "postgresql";
75
31
  dbCredentials: {
76
32
  host: string;
77
33
  port?: number;
@@ -83,7 +39,7 @@ export type Config = {
83
39
  url: string;
84
40
  };
85
41
  } | {
86
- dialect: "pg";
42
+ dialect: "postgresql";
87
43
  driver: "aws-data-api";
88
44
  dbCredentials: {
89
45
  database: string;
package/index.d.ts CHANGED
@@ -1,52 +1,5 @@
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
1
  export type Config = {
49
- dialect: Dialect;
2
+ dialect: "postgresql" | "mysql" | "sqlite";
50
3
  out?: string;
51
4
  breakpoints?: boolean;
52
5
  tablesFilter?: string | string[];
@@ -54,7 +7,10 @@ export type Config = {
54
7
  schema?: string | string[];
55
8
  verbose?: boolean;
56
9
  strict?: boolean;
57
- } & {
10
+ migrations?: {
11
+ table?: string;
12
+ schema?: string;
13
+ };
58
14
  introspect?: {
59
15
  casing: "camel" | "preserve";
60
16
  };
@@ -71,7 +27,7 @@ export type Config = {
71
27
  url: string;
72
28
  };
73
29
  } | {
74
- dialect: "pg";
30
+ dialect: "postgresql";
75
31
  dbCredentials: {
76
32
  host: string;
77
33
  port?: number;
@@ -83,7 +39,7 @@ export type Config = {
83
39
  url: string;
84
40
  };
85
41
  } | {
86
- dialect: "pg";
42
+ dialect: "postgresql";
87
43
  driver: "aws-data-api";
88
44
  dbCredentials: {
89
45
  database: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.17-e041df8",
3
+ "version": "0.20.17-e0821c1",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -61,12 +61,13 @@
61
61
  "@types/ws": "^8.5.10",
62
62
  "@typescript-eslint/eslint-plugin": "^7.2.0",
63
63
  "@typescript-eslint/parser": "^7.2.0",
64
+ "@vercel/postgres": "^0.8.0",
64
65
  "ava": "^5.1.0",
65
66
  "better-sqlite3": "^9.4.3",
66
67
  "dockerode": "^3.3.4",
67
68
  "dotenv": "^16.0.3",
68
69
  "drizzle-kit": "0.20.14",
69
- "drizzle-orm": "0.30.5-ab9feb7",
70
+ "drizzle-orm": "0.30.9",
70
71
  "esbuild-node-externals": "^1.9.0",
71
72
  "eslint": "^8.57.0",
72
73
  "eslint-config-prettier": "^9.1.0",