drizzle-kit 0.20.17-5938f5d → 0.20.17-76a18b4

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.
@@ -122,7 +122,7 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
122
122
  }>;
123
123
  id: string;
124
124
  prevId: string;
125
- version: "6";
125
+ version: "5";
126
126
  dialect: "mysql";
127
127
  _meta: {
128
128
  columns: Record<string, string>;
@@ -176,7 +176,7 @@ export declare const prepareMySQLPush: (schemaPath: string | string[], snapshot:
176
176
  }>;
177
177
  id: string;
178
178
  prevId: string;
179
- version: "6";
179
+ version: "5";
180
180
  dialect: "mysql";
181
181
  _meta: {
182
182
  columns: Record<string, string>;
@@ -1,9 +1,4 @@
1
- import type { MysqlCredentials } from "../validations/mysql";
2
1
  import type { DB } from "../../utils";
3
- export declare const connectToMySQL: (credentials: MysqlCredentials) => Promise<{
4
- db: DB;
5
- database: string;
6
- }>;
7
2
  export declare const mysqlPushIntrospect: (db: DB, databaseName: string, filters: string[]) => Promise<{
8
3
  schema: {
9
4
  tables: Record<string, {
@@ -45,7 +40,7 @@ export declare const mysqlPushIntrospect: (db: DB, databaseName: string, filters
45
40
  }>;
46
41
  id: string;
47
42
  prevId: string;
48
- version: "6";
43
+ version: "5";
49
44
  dialect: "mysql";
50
45
  _meta: {
51
46
  columns: Record<string, string>;
@@ -1,7 +1,6 @@
1
1
  import type { SqliteCredentials } from "../validations/sqlite";
2
2
  import type { SQLiteDB } from "../../utils";
3
3
  import { Casing } from "../validations/common";
4
- export declare const connectToSQLite: (credentials: SqliteCredentials) => Promise<SQLiteDB>;
5
4
  export declare const sqliteIntrospect: (credentials: SqliteCredentials, filters: string[], casing: Casing) => Promise<{
6
5
  schema: {
7
6
  tables: Record<string, {
@@ -1,10 +1,10 @@
1
1
  import { SQLiteSchemaInternal, SQLiteSchemaSquashed } from "../../serializer/sqliteSchema";
2
2
  import type { JsonStatement } from "../../jsonStatements";
3
- import type { DB } from "../../utils";
3
+ import type { SQLiteDB } from "../../utils";
4
4
  export declare const _moveDataStatements: (tableName: string, json: SQLiteSchemaSquashed, dataLoss?: boolean) => string[];
5
5
  export declare const getOldTableName: (tableName: string, meta: SQLiteSchemaInternal["_meta"]) => string;
6
6
  export declare const getNewTableName: (tableName: string, meta: SQLiteSchemaInternal["_meta"]) => string;
7
- export declare const logSuggestionsAndReturn: (connection: DB, statements: JsonStatement[], json1: SQLiteSchemaSquashed, json2: SQLiteSchemaSquashed, meta: SQLiteSchemaInternal["_meta"]) => Promise<{
7
+ export declare const logSuggestionsAndReturn: (connection: SQLiteDB, statements: JsonStatement[], json1: SQLiteSchemaSquashed, json2: SQLiteSchemaSquashed, meta: SQLiteSchemaInternal["_meta"]) => Promise<{
8
8
  statementsToExecute: string[];
9
9
  shouldAskForApprove: boolean;
10
10
  infoToPrint: string[];
@@ -0,0 +1,13 @@
1
+ import type { DB, Proxy, SQLiteDB, SqliteProxy } from "../utils";
2
+ import type { PostgresCredentials } from "./validations/pg";
3
+ import type { MysqlCredentials } from "./validations/mysql";
4
+ import { SqliteCredentials } from "./validations/sqlite";
5
+ export declare const preparePostgresDB: (credentials: PostgresCredentials) => Promise<DB & {
6
+ proxy: Proxy;
7
+ }>;
8
+ export declare const connectToMySQL: (it: MysqlCredentials) => Promise<{
9
+ db: DB;
10
+ proxy: Proxy;
11
+ database: string;
12
+ }>;
13
+ export declare const connectToSQLite: (credentials: SqliteCredentials) => Promise<SQLiteDB & SqliteProxy>;
@@ -50,35 +50,35 @@ export declare const pushParams: import("zod").ZodObject<{
50
50
  strict?: boolean | undefined;
51
51
  schema?: string | string[] | undefined;
52
52
  url?: string | undefined;
53
- tablesFilter?: string | string[] | undefined;
54
- verbose?: boolean | undefined;
55
53
  host?: string | undefined;
56
54
  port?: string | undefined;
57
55
  user?: string | undefined;
58
56
  password?: string | undefined;
59
57
  database?: string | undefined;
60
- connectionString?: string | undefined;
61
58
  uri?: string | undefined;
59
+ connectionString?: string | undefined;
62
60
  ssl?: string | undefined;
63
61
  authToken?: string | undefined;
62
+ tablesFilter?: string | string[] | undefined;
63
+ verbose?: boolean | undefined;
64
64
  }, {
65
65
  dialect: "mysql" | "pg" | "sqlite";
66
66
  driver: string;
67
67
  strict?: boolean | undefined;
68
68
  schema?: string | string[] | undefined;
69
69
  url?: string | undefined;
70
- tablesFilter?: string | string[] | undefined;
71
- verbose?: boolean | undefined;
72
70
  host?: string | undefined;
73
71
  port?: string | undefined;
74
72
  user?: string | undefined;
75
73
  password?: string | undefined;
76
74
  database?: string | undefined;
77
- connectionString?: string | undefined;
78
- schemaFilters?: string | string[] | undefined;
79
75
  uri?: string | undefined;
76
+ connectionString?: string | undefined;
80
77
  ssl?: string | undefined;
81
78
  authToken?: string | undefined;
79
+ tablesFilter?: string | string[] | undefined;
80
+ verbose?: boolean | undefined;
81
+ schemaFilters?: string | string[] | undefined;
82
82
  }>;
83
83
  export type PushParams = TypeOf<typeof pushParams>;
84
84
  export declare const pullParams: import("zod").ZodObject<{
@@ -107,36 +107,36 @@ export declare const pullParams: import("zod").ZodObject<{
107
107
  "introspect-casing": "camel" | "preserve";
108
108
  dialect?: "mysql" | "pg" | "sqlite" | undefined;
109
109
  url?: string | undefined;
110
- config?: string | undefined;
111
- driver?: string | undefined;
112
- tablesFilter?: string | string[] | undefined;
113
110
  host?: string | undefined;
114
111
  port?: string | undefined;
115
112
  user?: string | undefined;
116
113
  password?: string | undefined;
117
114
  database?: string | undefined;
118
- connectionString?: string | undefined;
119
115
  uri?: string | undefined;
116
+ driver?: string | undefined;
117
+ connectionString?: string | undefined;
120
118
  ssl?: string | undefined;
121
119
  authToken?: string | undefined;
120
+ config?: string | undefined;
121
+ tablesFilter?: string | string[] | undefined;
122
122
  }, {
123
123
  dialect?: "mysql" | "pg" | "sqlite" | undefined;
124
124
  url?: string | undefined;
125
- config?: string | undefined;
126
- out?: string | undefined;
127
- breakpoints?: boolean | undefined;
128
- driver?: string | undefined;
129
- tablesFilter?: string | string[] | undefined;
130
- schemaFilter?: string | string[] | undefined;
131
125
  host?: string | undefined;
132
126
  port?: string | undefined;
133
127
  user?: string | undefined;
134
128
  password?: string | undefined;
135
129
  database?: string | undefined;
136
- connectionString?: string | undefined;
137
130
  uri?: string | undefined;
131
+ driver?: string | undefined;
132
+ connectionString?: string | undefined;
138
133
  ssl?: string | undefined;
139
134
  authToken?: string | undefined;
135
+ config?: string | undefined;
136
+ out?: string | undefined;
137
+ breakpoints?: boolean | undefined;
138
+ tablesFilter?: string | string[] | undefined;
139
+ schemaFilter?: string | string[] | undefined;
140
140
  "introspect-casing"?: "camel" | "preserve" | undefined;
141
141
  }>;
142
142
  export type PullParams = TypeOf<typeof pullParams>;
@@ -24,15 +24,15 @@ export declare const configCommonSchema: import("zod").ZodObject<{
24
24
  dialect: "mysql" | "pg" | "sqlite";
25
25
  breakpoints: boolean;
26
26
  schemaFilter: string | string[];
27
- out?: string | undefined;
28
27
  driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
28
+ out?: string | undefined;
29
29
  tablesFilter?: string | string[] | undefined;
30
30
  }, {
31
31
  schema: string | string[];
32
32
  dialect: "mysql" | "pg" | "sqlite";
33
+ driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
33
34
  out?: string | undefined;
34
35
  breakpoints?: boolean | undefined;
35
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
36
36
  tablesFilter?: string | string[] | undefined;
37
37
  schemaFilter?: string | string[] | undefined;
38
38
  }>;
@@ -170,15 +170,15 @@ export declare const mySqlCliConfigSchema: import("zod").ZodIntersection<import(
170
170
  dialect: "mysql" | "pg" | "sqlite";
171
171
  breakpoints: boolean;
172
172
  schemaFilter: string | string[];
173
- out?: string | undefined;
174
173
  driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
174
+ out?: string | undefined;
175
175
  tablesFilter?: string | string[] | undefined;
176
176
  }, {
177
177
  schema: string | string[];
178
178
  dialect: "mysql" | "pg" | "sqlite";
179
+ driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
179
180
  out?: string | undefined;
180
181
  breakpoints?: boolean | undefined;
181
- driver?: "pg" | "turso" | "better-sqlite" | "libsql" | "d1" | "mysql2" | "expo" | undefined;
182
182
  tablesFilter?: string | string[] | undefined;
183
183
  schemaFilter?: string | string[] | undefined;
184
184
  }>, import("zod").ZodUnion<[import("zod").ZodObject<{
@@ -18,17 +18,11 @@ export declare const mysqlCredentials: import("zod").ZodUnion<[import("zod").Zod
18
18
  user?: string | undefined;
19
19
  password?: string | undefined;
20
20
  }>, import("zod").ZodObject<{
21
- uri: import("zod").ZodString;
21
+ url: import("zod").ZodString;
22
22
  }, "strip", import("zod").ZodTypeAny, {
23
- uri: string;
23
+ url: string;
24
24
  }, {
25
- uri: string;
26
- }>, import("zod").ZodObject<{
27
- connectionString: import("zod").ZodString;
28
- }, "strip", import("zod").ZodTypeAny, {
29
- connectionString: string;
30
- }, {
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,11 +21,11 @@ export declare const postgresCredentials: import("zod").ZodUnion<[import("zod").
21
21
  password?: string | undefined;
22
22
  ssl?: boolean | undefined;
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
29
  }>]>;
30
30
  export type PostgresCredentials = TypeOf<typeof postgresCredentials>;
31
31
  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,7 +80,7 @@ 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";
@@ -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,7 +80,7 @@ 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";
@@ -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-5938f5d",
3
+ "version": "0.20.17-76a18b4",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -47,6 +47,7 @@
47
47
  "@libsql/client": "^0.4.2",
48
48
  "@neondatabase/serverless": "^0.9.1",
49
49
  "@originjs/vite-plugin-commonjs": "^1.0.3",
50
+ "@planetscale/database": "^1.16.0",
50
51
  "@types/better-sqlite3": "^7.6.4",
51
52
  "@types/dockerode": "^3.3.28",
52
53
  "@types/glob": "^8.1.0",