drizzle-kit 1.0.0-beta.23-c02e161 → 1.0.0-beta.23-0bbcaa2

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.
Files changed (59) hide show
  1. package/README.md +0 -2
  2. package/api-mysql.d.mts +0 -2
  3. package/api-mysql.d.ts +0 -2
  4. package/api-mysql.js +3 -4
  5. package/api-mysql.mjs +646 -14466
  6. package/api-postgres.d.mts +2 -4
  7. package/api-postgres.d.ts +2 -4
  8. package/api-postgres.js +23 -25
  9. package/api-postgres.mjs +1033 -13955
  10. package/api-sqlite.d.mts +0 -3
  11. package/api-sqlite.d.ts +0 -3
  12. package/api-sqlite.js +3 -4
  13. package/api-sqlite.mjs +646 -14466
  14. package/bin.cjs +118368 -132010
  15. package/{connections-ClWH3r40.js → connections-D35oU9jb.js} +57 -57
  16. package/{ddl-BPQrnAaq.js → ddl-BXQL0POs.js} +8 -1
  17. package/{diff-CfhcHSx5.js → diff-BHBkEJHk.js} +29 -29
  18. package/{dist-cjs-Bbr-eaEf.js → dist-cjs-B3VivlS8.js} +2 -2
  19. package/{dist-cjs-im3MTPVX.js → dist-cjs-BCV30_Cj.js} +9 -9
  20. package/{dist-cjs-B1xAuafS.js → dist-cjs-C1V3hN4z.js} +1 -1
  21. package/{dist-cjs-DDsURbpj.js → dist-cjs-CBbOAgC5.js} +14 -14
  22. package/{dist-cjs-D-3HD-zL.js → dist-cjs-CR89m5U6.js} +5 -5
  23. package/{dist-cjs-CnrzgOL7.js → dist-cjs-Cev9lui1.js} +1 -1
  24. package/{dist-cjs-Bakcuk2h.js → dist-cjs-Cj1M6Wnw.js} +2 -2
  25. package/{dist-cjs-DcobFHcw.js → dist-cjs-D3MlFP7Q.js} +4 -4
  26. package/{dist-cjs-5dWzRumA.js → dist-cjs-DJqjr70i.js} +4 -4
  27. package/{dist-cjs-BVkZj9Z0.js → dist-cjs-DP1dfP1V.js} +13 -13
  28. package/{dist-cjs-D1e0ytFm.js → dist-cjs-DUq-vErp.js} +3 -3
  29. package/{dist-cjs-B2-ftxAY.js → dist-cjs-UWi57ZSc.js} +2 -2
  30. package/{dist-cjs-Bl6XDZW7.js → dist-cjs-to2v3P5b.js} +10 -10
  31. package/{drizzle-Bj7v9CEh.js → drizzle-CZht7yVz.js} +1 -15
  32. package/{drizzle-DX4zjwm_.js → drizzle-DK8cIq7c.js} +10 -11
  33. package/{event-streams-BZ_ax_bo.js → event-streams-Xar8ZyA-.js} +1 -1
  34. package/index.d.mts +1 -15
  35. package/index.d.ts +1 -15
  36. package/index.js +2 -4
  37. package/{multipart-parser-VeJzH7O_.js → multipart-parser-C603eFFq.js} +1 -1
  38. package/package.json +2 -4
  39. package/prompts-D0_43XFq.js +60 -0
  40. package/push-postgres-rfOlX-yB.js +107 -0
  41. package/{signin-C8NO5mOk.js → signin-Buh2ql0x.js} +7 -7
  42. package/{snapshot-D9z9pXd6.js → snapshot-CHMNRJxo.js} +3 -3
  43. package/{sso-oidc-DVH6Lzm-.js → sso-oidc-vgpv2Xio.js} +7 -7
  44. package/{sts-Cm122ptu.js → sts-T1y5K8UP.js} +7 -7
  45. package/{studio-BDfqAyPd.js → studio-CFpuBxWx.js} +26 -31
  46. package/{types-C-lLiiVk.js → types-B0Upgohz.js} +0 -6
  47. package/{utils-node-O-EHLXMq.js → utils-node-DWTi1mTL.js} +4 -4
  48. package/{errors-8i2gq1dB.js → views-CWLPzq9s.js} +6 -92
  49. package/common-COF32Vgh.d.mts +0 -5
  50. package/common-CgCtdV9v.d.ts +0 -5
  51. package/hints-CnlOc4me.js +0 -252
  52. package/prompts-DwHqsg2Z.js +0 -163
  53. package/push-postgres-wSXBHrqT.js +0 -185
  54. /package/{client-DTM1rYh-.js → client-VFkjMFq-.js} +0 -0
  55. /package/{dist-cjs-CoZE2oia.js → dist-cjs-Dp8oIgKa.js} +0 -0
  56. /package/{dist-cjs-BwEAJ89x.js → dist-cjs-ZJzjWKq4.js} +0 -0
  57. /package/{dist-cjs-CGm2SgLE.js → dist-cjs-wRND57ru.js} +0 -0
  58. /package/{package-By_VqHQc.js → package-C0chbb9U.js} +0 -0
  59. /package/{promise-DZcM2KkM.js → promise-Du6d4fSq.js} +0 -0
package/README.md CHANGED
@@ -7,8 +7,6 @@ Drizzle Kit is a CLI migrator tool for Drizzle ORM. It is probably the one and o
7
7
 
8
8
  Check the full documentation on [the website](https://orm.drizzle.team/kit-docs/overview).
9
9
 
10
- For machine-readable CLI behavior in non-interactive workflows, see [JSON mode and hints contract](./JSON_CONTRACT.md).
11
-
12
10
 
13
11
  ### How it works
14
12
 
package/api-mysql.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { c as ZodObject, d as ZodTypeAny, l as ZodOptional, n as ZodArray, p as ZodUnion, r as ZodBoolean, s as ZodNumber, t as TypeOf, u as ZodString } from "./types-DjcBI3w-.mjs";
2
- import { t as CasingType } from "./common-COF32Vgh.mjs";
3
2
 
4
3
  //#region src/cli/validations/mysql.d.ts
5
4
  declare const mysqlCredentials: ZodUnion<[ZodObject<{
@@ -81,7 +80,6 @@ type MysqlCredentials = TypeOf<typeof mysqlCredentials>;
81
80
  declare const startStudioServer: (imports: Record<string, unknown>, credentials: MysqlCredentials, options?: {
82
81
  host?: string;
83
82
  port?: number;
84
- casing?: CasingType;
85
83
  key?: string;
86
84
  cert?: string;
87
85
  }) => Promise<void>;
package/api-mysql.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { c as ZodObject, d as ZodTypeAny, l as ZodOptional, n as ZodArray, p as ZodUnion, r as ZodBoolean, s as ZodNumber, t as TypeOf, u as ZodString } from "./types-DQPabKbg.js";
2
- import { t as CasingType } from "./common-CgCtdV9v.js";
3
2
 
4
3
  //#region src/cli/validations/mysql.d.ts
5
4
  declare const mysqlCredentials: ZodUnion<[ZodObject<{
@@ -81,7 +80,6 @@ type MysqlCredentials = TypeOf<typeof mysqlCredentials>;
81
80
  declare const startStudioServer: (imports: Record<string, unknown>, credentials: MysqlCredentials, options?: {
82
81
  host?: string;
83
82
  port?: number;
84
- casing?: CasingType;
85
83
  key?: string;
86
84
  cert?: string;
87
85
  }) => Promise<void>;
package/api-mysql.js CHANGED
@@ -6,8 +6,7 @@ const startStudioServer = async (imports, credentials, options) => {
6
6
  const { is } = require("drizzle-orm");
7
7
  const { MySqlTable, getTableConfig } = require("drizzle-orm/mysql-core");
8
8
  const { Relations } = require("drizzle-orm/_relations");
9
- const { drizzleForMySQL, prepareServer } = await Promise.resolve().then(() => require("./studio-BDfqAyPd.js"));
10
- const { humanLog } = await Promise.resolve().then(() => require("./errors-8i2gq1dB.js")).then((n) => n.views_exports);
9
+ const { drizzleForMySQL, prepareServer } = await Promise.resolve().then(() => require("./studio-CFpuBxWx.js"));
11
10
  const mysqlSchema = {};
12
11
  const relations = {};
13
12
  Object.entries(imports).forEach(([k, t]) => {
@@ -18,7 +17,7 @@ const startStudioServer = async (imports, credentials, options) => {
18
17
  }
19
18
  if (is(t, Relations)) relations[k] = t;
20
19
  });
21
- const server = await prepareServer(await drizzleForMySQL(credentials, mysqlSchema, relations, [], options?.casing));
20
+ const server = await prepareServer(await drizzleForMySQL(credentials, mysqlSchema, relations, []));
22
21
  const host = options?.host || "127.0.0.1";
23
22
  const port = options?.port || 4983;
24
23
  server.start({
@@ -28,7 +27,7 @@ const startStudioServer = async (imports, credentials, options) => {
28
27
  cert: options?.cert,
29
28
  cb: (err) => {
30
29
  if (err) console.error(err);
31
- else humanLog(`Studio is running at ${options?.key ? "https" : "http"}://${host}:${port}`);
30
+ else console.log(`Studio is running at ${options?.key ? "https" : "http"}://${host}:${port}`);
32
31
  }
33
32
  });
34
33
  };