drizzle-kit 1.0.0-beta.22-8d8ecb7 → 1.0.0-beta.23

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.
package/api-mysql.d.mts CHANGED
@@ -1,4 +1,5 @@
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";
2
3
 
3
4
  //#region src/cli/validations/mysql.d.ts
4
5
  declare const mysqlCredentials: ZodUnion<[ZodObject<{
@@ -80,6 +81,7 @@ type MysqlCredentials = TypeOf<typeof mysqlCredentials>;
80
81
  declare const startStudioServer: (imports: Record<string, unknown>, credentials: MysqlCredentials, options?: {
81
82
  host?: string;
82
83
  port?: number;
84
+ casing?: CasingType;
83
85
  key?: string;
84
86
  cert?: string;
85
87
  }) => Promise<void>;
package/api-mysql.d.ts CHANGED
@@ -1,4 +1,5 @@
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";
2
3
 
3
4
  //#region src/cli/validations/mysql.d.ts
4
5
  declare const mysqlCredentials: ZodUnion<[ZodObject<{
@@ -80,6 +81,7 @@ type MysqlCredentials = TypeOf<typeof mysqlCredentials>;
80
81
  declare const startStudioServer: (imports: Record<string, unknown>, credentials: MysqlCredentials, options?: {
81
82
  host?: string;
82
83
  port?: number;
84
+ casing?: CasingType;
83
85
  key?: string;
84
86
  cert?: string;
85
87
  }) => Promise<void>;
package/api-mysql.js CHANGED
@@ -6,7 +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-CFpuBxWx.js"));
9
+ const { drizzleForMySQL, prepareServer } = await Promise.resolve().then(() => require("./studio-DK-jdELO.js"));
10
10
  const mysqlSchema = {};
11
11
  const relations = {};
12
12
  Object.entries(imports).forEach(([k, t]) => {
@@ -17,7 +17,7 @@ const startStudioServer = async (imports, credentials, options) => {
17
17
  }
18
18
  if (is(t, Relations)) relations[k] = t;
19
19
  });
20
- const server = await prepareServer(await drizzleForMySQL(credentials, mysqlSchema, relations, []));
20
+ const server = await prepareServer(await drizzleForMySQL(credentials, mysqlSchema, relations, [], options?.casing));
21
21
  const host = options?.host || "127.0.0.1";
22
22
  const port = options?.port || 4983;
23
23
  server.start({