drizzle-kit 0.20.17-76a18b4 → 0.20.17-7a1dd7a

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.
@@ -98,13 +98,13 @@ export declare const pullParams: import("zod").ZodObject<{
98
98
  ssl: import("zod").ZodOptional<import("zod").ZodString>;
99
99
  url: import("zod").ZodOptional<import("zod").ZodString>;
100
100
  authToken: import("zod").ZodOptional<import("zod").ZodString>;
101
- "introspect-casing": import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
101
+ introspectCasing: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"camel">, import("zod").ZodLiteral<"preserve">]>>;
102
102
  breakpoints: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
103
103
  }, "strip", import("zod").ZodTypeAny, {
104
104
  out: string;
105
105
  breakpoints: boolean;
106
106
  schemaFilter: string | string[];
107
- "introspect-casing": "camel" | "preserve";
107
+ introspectCasing: "camel" | "preserve";
108
108
  dialect?: "mysql" | "pg" | "sqlite" | undefined;
109
109
  url?: string | undefined;
110
110
  host?: string | undefined;
@@ -137,7 +137,7 @@ export declare const pullParams: import("zod").ZodObject<{
137
137
  breakpoints?: boolean | undefined;
138
138
  tablesFilter?: string | string[] | undefined;
139
139
  schemaFilter?: string | string[] | undefined;
140
- "introspect-casing"?: "camel" | "preserve" | undefined;
140
+ introspectCasing?: "camel" | "preserve" | undefined;
141
141
  }>;
142
142
  export type PullParams = TypeOf<typeof pullParams>;
143
143
  export declare const configCheck: import("zod").ZodObject<{
@@ -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: {
@@ -26,6 +26,21 @@ export declare const postgresCredentials: import("zod").ZodUnion<[import("zod").
26
26
  url: string;
27
27
  }, {
28
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;
29
44
  }>]>;
30
45
  export type PostgresCredentials = TypeOf<typeof postgresCredentials>;
31
46
  export declare const printConfigConnectionIssues: (options: Record<string, unknown>) => void;
package/index.d.mts CHANGED
@@ -86,9 +86,9 @@ export type Config = {
86
86
  dialect: "pg";
87
87
  driver: "aws-data-api";
88
88
  dbCredentials: {
89
- key: string;
90
- secret: string;
91
- id: string;
89
+ database: string;
90
+ secretArn: string;
91
+ resourceArn: string;
92
92
  };
93
93
  } | {
94
94
  dialect: "mysql";
package/index.d.ts CHANGED
@@ -86,9 +86,9 @@ export type Config = {
86
86
  dialect: "pg";
87
87
  driver: "aws-data-api";
88
88
  dbCredentials: {
89
- key: string;
90
- secret: string;
91
- id: string;
89
+ database: string;
90
+ secretArn: string;
91
+ resourceArn: string;
92
92
  };
93
93
  } | {
94
94
  dialect: "mysql";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.17-76a18b4",
3
+ "version": "0.20.17-7a1dd7a",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
@@ -42,6 +42,7 @@
42
42
  "zod": "^3.20.2"
43
43
  },
44
44
  "devDependencies": {
45
+ "@aws-sdk/client-rds-data": "^3.556.0",
45
46
  "@cloudflare/workers-types": "^4.20230518.0",
46
47
  "@electric-sql/pglite": "^0.1.3",
47
48
  "@libsql/client": "^0.4.2",
@@ -60,6 +61,7 @@
60
61
  "@types/ws": "^8.5.10",
61
62
  "@typescript-eslint/eslint-plugin": "^7.2.0",
62
63
  "@typescript-eslint/parser": "^7.2.0",
64
+ "@vercel/postgres": "^0.8.0",
63
65
  "ava": "^5.1.0",
64
66
  "better-sqlite3": "^9.4.3",
65
67
  "dockerode": "^3.3.4",
package/payload.js CHANGED
@@ -5949,7 +5949,6 @@ var init_mysql = __esm({
5949
5949
  }),
5950
5950
  objectType({
5951
5951
  url: stringType()
5952
- // TODO: change docs
5953
5952
  })
5954
5953
  ]);
5955
5954
  }
@@ -5973,6 +5972,12 @@ var init_pg = __esm({
5973
5972
  }),
5974
5973
  objectType({
5975
5974
  url: stringType()
5975
+ }),
5976
+ objectType({
5977
+ driver: literalType("aws-data-api"),
5978
+ database: stringType(),
5979
+ secretArn: stringType(),
5980
+ resourceArn: stringType()
5976
5981
  })
5977
5982
  ]);
5978
5983
  }
@@ -6164,7 +6169,7 @@ var init_cli = __esm({
6164
6169
  ssl: stringType().optional(),
6165
6170
  url: stringType().optional(),
6166
6171
  authToken: stringType().optional(),
6167
- "introspect-casing": casing,
6172
+ introspectCasing: casing,
6168
6173
  breakpoints: booleanType().optional().default(true)
6169
6174
  });
6170
6175
  configCheck = objectType({
@@ -10117,15 +10122,15 @@ var require_node2 = __commonJS({
10117
10122
  return newToken("punctuator", read());
10118
10123
  case "n":
10119
10124
  read();
10120
- literal2("ull");
10125
+ literal("ull");
10121
10126
  return newToken("null", null);
10122
10127
  case "t":
10123
10128
  read();
10124
- literal2("rue");
10129
+ literal("rue");
10125
10130
  return newToken("boolean", true);
10126
10131
  case "f":
10127
10132
  read();
10128
- literal2("alse");
10133
+ literal("alse");
10129
10134
  return newToken("boolean", false);
10130
10135
  case "-":
10131
10136
  case "+":
@@ -10156,11 +10161,11 @@ var require_node2 = __commonJS({
10156
10161
  return;
10157
10162
  case "I":
10158
10163
  read();
10159
- literal2("nfinity");
10164
+ literal("nfinity");
10160
10165
  return newToken("numeric", Infinity);
10161
10166
  case "N":
10162
10167
  read();
10163
- literal2("aN");
10168
+ literal("aN");
10164
10169
  return newToken("numeric", NaN);
10165
10170
  case '"':
10166
10171
  case "'":
@@ -10254,11 +10259,11 @@ var require_node2 = __commonJS({
10254
10259
  return;
10255
10260
  case "I":
10256
10261
  read();
10257
- literal2("nfinity");
10262
+ literal("nfinity");
10258
10263
  return newToken("numeric", sign * Infinity);
10259
10264
  case "N":
10260
10265
  read();
10261
- literal2("aN");
10266
+ literal("aN");
10262
10267
  return newToken("numeric", NaN);
10263
10268
  }
10264
10269
  throw invalidChar(read());
@@ -10491,7 +10496,7 @@ var require_node2 = __commonJS({
10491
10496
  column: column4
10492
10497
  };
10493
10498
  }
10494
- function literal2(s) {
10499
+ function literal(s) {
10495
10500
  for (const c2 of s) {
10496
10501
  const p = peek();
10497
10502
  if (p !== c2) {
package/payload.mjs CHANGED
@@ -5955,7 +5955,6 @@ var init_mysql = __esm({
5955
5955
  }),
5956
5956
  objectType({
5957
5957
  url: stringType()
5958
- // TODO: change docs
5959
5958
  })
5960
5959
  ]);
5961
5960
  }
@@ -5979,6 +5978,12 @@ var init_pg = __esm({
5979
5978
  }),
5980
5979
  objectType({
5981
5980
  url: stringType()
5981
+ }),
5982
+ objectType({
5983
+ driver: literalType("aws-data-api"),
5984
+ database: stringType(),
5985
+ secretArn: stringType(),
5986
+ resourceArn: stringType()
5982
5987
  })
5983
5988
  ]);
5984
5989
  }
@@ -6170,7 +6175,7 @@ var init_cli = __esm({
6170
6175
  ssl: stringType().optional(),
6171
6176
  url: stringType().optional(),
6172
6177
  authToken: stringType().optional(),
6173
- "introspect-casing": casing,
6178
+ introspectCasing: casing,
6174
6179
  breakpoints: booleanType().optional().default(true)
6175
6180
  });
6176
6181
  configCheck = objectType({
@@ -10123,15 +10128,15 @@ var require_node2 = __commonJS({
10123
10128
  return newToken("punctuator", read());
10124
10129
  case "n":
10125
10130
  read();
10126
- literal2("ull");
10131
+ literal("ull");
10127
10132
  return newToken("null", null);
10128
10133
  case "t":
10129
10134
  read();
10130
- literal2("rue");
10135
+ literal("rue");
10131
10136
  return newToken("boolean", true);
10132
10137
  case "f":
10133
10138
  read();
10134
- literal2("alse");
10139
+ literal("alse");
10135
10140
  return newToken("boolean", false);
10136
10141
  case "-":
10137
10142
  case "+":
@@ -10162,11 +10167,11 @@ var require_node2 = __commonJS({
10162
10167
  return;
10163
10168
  case "I":
10164
10169
  read();
10165
- literal2("nfinity");
10170
+ literal("nfinity");
10166
10171
  return newToken("numeric", Infinity);
10167
10172
  case "N":
10168
10173
  read();
10169
- literal2("aN");
10174
+ literal("aN");
10170
10175
  return newToken("numeric", NaN);
10171
10176
  case '"':
10172
10177
  case "'":
@@ -10260,11 +10265,11 @@ var require_node2 = __commonJS({
10260
10265
  return;
10261
10266
  case "I":
10262
10267
  read();
10263
- literal2("nfinity");
10268
+ literal("nfinity");
10264
10269
  return newToken("numeric", sign * Infinity);
10265
10270
  case "N":
10266
10271
  read();
10267
- literal2("aN");
10272
+ literal("aN");
10268
10273
  return newToken("numeric", NaN);
10269
10274
  }
10270
10275
  throw invalidChar(read());
@@ -10497,7 +10502,7 @@ var require_node2 = __commonJS({
10497
10502
  column: column4
10498
10503
  };
10499
10504
  }
10500
- function literal2(s) {
10505
+ function literal(s) {
10501
10506
  for (const c2 of s) {
10502
10507
  const p = peek();
10503
10508
  if (p !== c2) {