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.
- package/README.md +0 -2
- package/api-mysql.d.mts +0 -2
- package/api-mysql.d.ts +0 -2
- package/api-mysql.js +3 -4
- package/api-mysql.mjs +646 -14466
- package/api-postgres.d.mts +2 -4
- package/api-postgres.d.ts +2 -4
- package/api-postgres.js +23 -25
- package/api-postgres.mjs +1033 -13955
- package/api-sqlite.d.mts +0 -3
- package/api-sqlite.d.ts +0 -3
- package/api-sqlite.js +3 -4
- package/api-sqlite.mjs +646 -14466
- package/bin.cjs +118368 -132010
- package/{connections-ClWH3r40.js → connections-D35oU9jb.js} +57 -57
- package/{ddl-BPQrnAaq.js → ddl-BXQL0POs.js} +8 -1
- package/{diff-CfhcHSx5.js → diff-BHBkEJHk.js} +29 -29
- package/{dist-cjs-Bbr-eaEf.js → dist-cjs-B3VivlS8.js} +2 -2
- package/{dist-cjs-im3MTPVX.js → dist-cjs-BCV30_Cj.js} +9 -9
- package/{dist-cjs-B1xAuafS.js → dist-cjs-C1V3hN4z.js} +1 -1
- package/{dist-cjs-DDsURbpj.js → dist-cjs-CBbOAgC5.js} +14 -14
- package/{dist-cjs-D-3HD-zL.js → dist-cjs-CR89m5U6.js} +5 -5
- package/{dist-cjs-CnrzgOL7.js → dist-cjs-Cev9lui1.js} +1 -1
- package/{dist-cjs-Bakcuk2h.js → dist-cjs-Cj1M6Wnw.js} +2 -2
- package/{dist-cjs-DcobFHcw.js → dist-cjs-D3MlFP7Q.js} +4 -4
- package/{dist-cjs-5dWzRumA.js → dist-cjs-DJqjr70i.js} +4 -4
- package/{dist-cjs-BVkZj9Z0.js → dist-cjs-DP1dfP1V.js} +13 -13
- package/{dist-cjs-D1e0ytFm.js → dist-cjs-DUq-vErp.js} +3 -3
- package/{dist-cjs-B2-ftxAY.js → dist-cjs-UWi57ZSc.js} +2 -2
- package/{dist-cjs-Bl6XDZW7.js → dist-cjs-to2v3P5b.js} +10 -10
- package/{drizzle-Bj7v9CEh.js → drizzle-CZht7yVz.js} +1 -15
- package/{drizzle-DX4zjwm_.js → drizzle-DK8cIq7c.js} +10 -11
- package/{event-streams-BZ_ax_bo.js → event-streams-Xar8ZyA-.js} +1 -1
- package/index.d.mts +1 -15
- package/index.d.ts +1 -15
- package/index.js +2 -4
- package/{multipart-parser-VeJzH7O_.js → multipart-parser-C603eFFq.js} +1 -1
- package/package.json +2 -4
- package/prompts-D0_43XFq.js +60 -0
- package/push-postgres-rfOlX-yB.js +107 -0
- package/{signin-C8NO5mOk.js → signin-Buh2ql0x.js} +7 -7
- package/{snapshot-D9z9pXd6.js → snapshot-CHMNRJxo.js} +3 -3
- package/{sso-oidc-DVH6Lzm-.js → sso-oidc-vgpv2Xio.js} +7 -7
- package/{sts-Cm122ptu.js → sts-T1y5K8UP.js} +7 -7
- package/{studio-BDfqAyPd.js → studio-CFpuBxWx.js} +26 -31
- package/{types-C-lLiiVk.js → types-B0Upgohz.js} +0 -6
- package/{utils-node-O-EHLXMq.js → utils-node-DWTi1mTL.js} +4 -4
- package/{errors-8i2gq1dB.js → views-CWLPzq9s.js} +6 -92
- package/common-COF32Vgh.d.mts +0 -5
- package/common-CgCtdV9v.d.ts +0 -5
- package/hints-CnlOc4me.js +0 -252
- package/prompts-DwHqsg2Z.js +0 -163
- package/push-postgres-wSXBHrqT.js +0 -185
- /package/{client-DTM1rYh-.js → client-VFkjMFq-.js} +0 -0
- /package/{dist-cjs-CoZE2oia.js → dist-cjs-Dp8oIgKa.js} +0 -0
- /package/{dist-cjs-BwEAJ89x.js → dist-cjs-ZJzjWKq4.js} +0 -0
- /package/{dist-cjs-CGm2SgLE.js → dist-cjs-wRND57ru.js} +0 -0
- /package/{package-By_VqHQc.js → package-C0chbb9U.js} +0 -0
- /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-
|
|
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, []
|
|
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
|
|
30
|
+
else console.log(`Studio is running at ${options?.key ? "https" : "http"}://${host}:${port}`);
|
|
32
31
|
}
|
|
33
32
|
});
|
|
34
33
|
};
|