drizzle-kit 1.0.0-beta.16-08eddf2 → 1.0.0-beta.16-501e9b2
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 +21 -21
- package/api-mysql.d.ts +21 -21
- package/api-mysql.js +1 -1
- package/api-mysql.mjs +6 -1
- package/api-postgres.d.mts +38 -38
- package/api-postgres.d.ts +38 -38
- package/api-postgres.js +5 -5
- package/api-postgres.mjs +21 -11
- package/api-sqlite.js +1 -1
- package/api-sqlite.mjs +6 -1
- package/bin.cjs +299 -139
- package/{connections-I4bQHbGE.js → connections-DXLx3sUR.js} +4 -4
- package/{dist-cjs-B3w4mv3S.js → dist-cjs-B0azHwSt.js} +4 -4
- package/{dist-cjs-B-GnoOa6.js → dist-cjs-B9UsuYCY.js} +0 -1
- package/{dist-cjs-CkGeK2g2.js → dist-cjs-BRrAwDG_.js} +4 -4
- package/{dist-cjs-BpEO118q.js → dist-cjs-CQCc4bni.js} +3 -3
- package/{dist-cjs-B0aRrr7i.js → dist-cjs-RfeMj_TG.js} +2 -2
- package/{drizzle-BuUHu2SD.js → drizzle-Bkaxmkho.js} +1 -1
- package/{introspect-fdob6gql.js → introspect-BvKEHEur.js} +15 -9
- package/{multipart-parser-C3ZS0ZVz.js → multipart-parser-BIHEgf6v.js} +1 -1
- package/package.json +1 -1
- package/{push-postgres-BaVtn-ZG.js → push-postgres-C2eACPLD.js} +1 -1
- package/{signin-C7D4OStK.js → signin-CC7OIM_f.js} +1 -1
- package/{sso-oidc-Dyjpw77b.js → sso-oidc-C---moSr.js} +1 -1
- package/{sts-C4wSdILt.js → sts-DKrc-wsf.js} +2 -2
- package/{sts-BoNcQhEL.js → sts-DO-EJLRz.js} +1 -1
- package/{studio-CSDDJxiZ.js → studio-Bu1qJUk2.js} +4 -4
- package/{utils-node-CotcuiUx.js → utils-node-BcwD5C-V.js} +6 -1
package/api-mysql.d.mts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as CasingType } from "./common-Bc72_W-g.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as zod0 from "zod";
|
|
3
3
|
import { TypeOf } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/cli/validations/mysql.d.ts
|
|
6
|
-
declare const mysqlCredentials:
|
|
7
|
-
host:
|
|
8
|
-
port:
|
|
9
|
-
user:
|
|
10
|
-
password:
|
|
11
|
-
database:
|
|
12
|
-
ssl:
|
|
13
|
-
pfx:
|
|
14
|
-
key:
|
|
15
|
-
passphrase:
|
|
16
|
-
cert:
|
|
17
|
-
ca:
|
|
18
|
-
crl:
|
|
19
|
-
ciphers:
|
|
20
|
-
rejectUnauthorized:
|
|
21
|
-
}, "strip",
|
|
6
|
+
declare const mysqlCredentials: zod0.ZodUnion<[zod0.ZodObject<{
|
|
7
|
+
host: zod0.ZodString;
|
|
8
|
+
port: zod0.ZodOptional<zod0.ZodNumber>;
|
|
9
|
+
user: zod0.ZodOptional<zod0.ZodString>;
|
|
10
|
+
password: zod0.ZodOptional<zod0.ZodString>;
|
|
11
|
+
database: zod0.ZodString;
|
|
12
|
+
ssl: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodString, zod0.ZodObject<{
|
|
13
|
+
pfx: zod0.ZodOptional<zod0.ZodString>;
|
|
14
|
+
key: zod0.ZodOptional<zod0.ZodString>;
|
|
15
|
+
passphrase: zod0.ZodOptional<zod0.ZodString>;
|
|
16
|
+
cert: zod0.ZodOptional<zod0.ZodString>;
|
|
17
|
+
ca: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodString, zod0.ZodArray<zod0.ZodString, "many">]>>;
|
|
18
|
+
crl: zod0.ZodOptional<zod0.ZodUnion<[zod0.ZodString, zod0.ZodArray<zod0.ZodString, "many">]>>;
|
|
19
|
+
ciphers: zod0.ZodOptional<zod0.ZodString>;
|
|
20
|
+
rejectUnauthorized: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
21
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
22
22
|
pfx?: string | undefined;
|
|
23
23
|
key?: string | undefined;
|
|
24
24
|
passphrase?: string | undefined;
|
|
@@ -37,7 +37,7 @@ declare const mysqlCredentials: zod3716.ZodUnion<[zod3716.ZodObject<{
|
|
|
37
37
|
ciphers?: string | undefined;
|
|
38
38
|
rejectUnauthorized?: boolean | undefined;
|
|
39
39
|
}>]>>;
|
|
40
|
-
}, "strip",
|
|
40
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
41
41
|
host: string;
|
|
42
42
|
database: string;
|
|
43
43
|
password?: string | undefined;
|
|
@@ -69,9 +69,9 @@ declare const mysqlCredentials: zod3716.ZodUnion<[zod3716.ZodObject<{
|
|
|
69
69
|
ciphers?: string | undefined;
|
|
70
70
|
rejectUnauthorized?: boolean | undefined;
|
|
71
71
|
} | undefined;
|
|
72
|
-
}>,
|
|
73
|
-
url:
|
|
74
|
-
}, "strip",
|
|
72
|
+
}>, zod0.ZodObject<{
|
|
73
|
+
url: zod0.ZodString;
|
|
74
|
+
}, "strip", zod0.ZodTypeAny, {
|
|
75
75
|
url: string;
|
|
76
76
|
}, {
|
|
77
77
|
url: string;
|
package/api-mysql.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as CasingType } from "./common-C4PhmYTg.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as zod3716 from "zod";
|
|
3
3
|
import { TypeOf } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/cli/validations/mysql.d.ts
|
|
6
|
-
declare const mysqlCredentials:
|
|
7
|
-
host:
|
|
8
|
-
port:
|
|
9
|
-
user:
|
|
10
|
-
password:
|
|
11
|
-
database:
|
|
12
|
-
ssl:
|
|
13
|
-
pfx:
|
|
14
|
-
key:
|
|
15
|
-
passphrase:
|
|
16
|
-
cert:
|
|
17
|
-
ca:
|
|
18
|
-
crl:
|
|
19
|
-
ciphers:
|
|
20
|
-
rejectUnauthorized:
|
|
21
|
-
}, "strip",
|
|
6
|
+
declare const mysqlCredentials: zod3716.ZodUnion<[zod3716.ZodObject<{
|
|
7
|
+
host: zod3716.ZodString;
|
|
8
|
+
port: zod3716.ZodOptional<zod3716.ZodNumber>;
|
|
9
|
+
user: zod3716.ZodOptional<zod3716.ZodString>;
|
|
10
|
+
password: zod3716.ZodOptional<zod3716.ZodString>;
|
|
11
|
+
database: zod3716.ZodString;
|
|
12
|
+
ssl: zod3716.ZodOptional<zod3716.ZodUnion<[zod3716.ZodString, zod3716.ZodObject<{
|
|
13
|
+
pfx: zod3716.ZodOptional<zod3716.ZodString>;
|
|
14
|
+
key: zod3716.ZodOptional<zod3716.ZodString>;
|
|
15
|
+
passphrase: zod3716.ZodOptional<zod3716.ZodString>;
|
|
16
|
+
cert: zod3716.ZodOptional<zod3716.ZodString>;
|
|
17
|
+
ca: zod3716.ZodOptional<zod3716.ZodUnion<[zod3716.ZodString, zod3716.ZodArray<zod3716.ZodString, "many">]>>;
|
|
18
|
+
crl: zod3716.ZodOptional<zod3716.ZodUnion<[zod3716.ZodString, zod3716.ZodArray<zod3716.ZodString, "many">]>>;
|
|
19
|
+
ciphers: zod3716.ZodOptional<zod3716.ZodString>;
|
|
20
|
+
rejectUnauthorized: zod3716.ZodOptional<zod3716.ZodBoolean>;
|
|
21
|
+
}, "strip", zod3716.ZodTypeAny, {
|
|
22
22
|
pfx?: string | undefined;
|
|
23
23
|
key?: string | undefined;
|
|
24
24
|
passphrase?: string | undefined;
|
|
@@ -37,7 +37,7 @@ declare const mysqlCredentials: zod0.ZodUnion<[zod0.ZodObject<{
|
|
|
37
37
|
ciphers?: string | undefined;
|
|
38
38
|
rejectUnauthorized?: boolean | undefined;
|
|
39
39
|
}>]>>;
|
|
40
|
-
}, "strip",
|
|
40
|
+
}, "strip", zod3716.ZodTypeAny, {
|
|
41
41
|
host: string;
|
|
42
42
|
database: string;
|
|
43
43
|
password?: string | undefined;
|
|
@@ -69,9 +69,9 @@ declare const mysqlCredentials: zod0.ZodUnion<[zod0.ZodObject<{
|
|
|
69
69
|
ciphers?: string | undefined;
|
|
70
70
|
rejectUnauthorized?: boolean | undefined;
|
|
71
71
|
} | undefined;
|
|
72
|
-
}>,
|
|
73
|
-
url:
|
|
74
|
-
}, "strip",
|
|
72
|
+
}>, zod3716.ZodObject<{
|
|
73
|
+
url: zod3716.ZodString;
|
|
74
|
+
}, "strip", zod3716.ZodTypeAny, {
|
|
75
75
|
url: string;
|
|
76
76
|
}, {
|
|
77
77
|
url: string;
|
package/api-mysql.js
CHANGED
|
@@ -5,7 +5,7 @@ const startStudioServer = async (imports, credentials, options) => {
|
|
|
5
5
|
const { is } = require("drizzle-orm");
|
|
6
6
|
const { MySqlTable, getTableConfig } = require("drizzle-orm/mysql-core");
|
|
7
7
|
const { Relations } = require("drizzle-orm/_relations");
|
|
8
|
-
const { drizzleForMySQL, prepareServer } = await Promise.resolve().then(() => require("./studio-
|
|
8
|
+
const { drizzleForMySQL, prepareServer } = await Promise.resolve().then(() => require("./studio-Bu1qJUk2.js"));
|
|
9
9
|
const mysqlSchema = {};
|
|
10
10
|
const relations = {};
|
|
11
11
|
Object.entries(imports).forEach(([k, t]) => {
|
package/api-mysql.mjs
CHANGED
|
@@ -9314,7 +9314,12 @@ var init_grammar$4 = __esmMin((() => {
|
|
|
9314
9314
|
drizzleImport: () => "binary",
|
|
9315
9315
|
defaultFromDrizzle: TinyText.defaultFromDrizzle,
|
|
9316
9316
|
defaultFromIntrospect: (value$1) => {
|
|
9317
|
-
if (value$1.startsWith("0x"))
|
|
9317
|
+
if (value$1.startsWith("0x")) {
|
|
9318
|
+
if (typeof Buffer !== "undefined") return `'${Buffer.from(value$1.slice(2), "hex").toString("utf-8")}'`;
|
|
9319
|
+
const matches = value$1.slice(2).match(/.{1,2}/g) ?? [];
|
|
9320
|
+
const bytes = new Uint8Array(matches.map((b$4) => parseInt(b$4, 16)));
|
|
9321
|
+
return `'${new TextDecoder().decode(bytes)}'`;
|
|
9322
|
+
}
|
|
9318
9323
|
return value$1;
|
|
9319
9324
|
},
|
|
9320
9325
|
toTs: TinyText.toTs
|
package/api-postgres.d.mts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as CasingType } from "./common-Bc72_W-g.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as zod3327 from "zod";
|
|
3
3
|
import { TypeOf } from "zod";
|
|
4
4
|
import { PGlite } from "@electric-sql/pglite";
|
|
5
5
|
import { PgAsyncDatabase } from "drizzle-orm/pg-core/async";
|
|
6
6
|
|
|
7
7
|
//#region src/cli/validations/cli.d.ts
|
|
8
8
|
declare const entitiesParams: {
|
|
9
|
-
tablesFilter:
|
|
10
|
-
schemaFilter:
|
|
11
|
-
extensionsFilters:
|
|
12
|
-
entities:
|
|
13
|
-
roles:
|
|
14
|
-
provider:
|
|
15
|
-
include:
|
|
16
|
-
exclude:
|
|
17
|
-
}, "strip",
|
|
9
|
+
tablesFilter: zod3327.ZodOptional<zod3327.ZodUnion<[zod3327.ZodString, zod3327.ZodArray<zod3327.ZodString, "many">]>>;
|
|
10
|
+
schemaFilter: zod3327.ZodOptional<zod3327.ZodUnion<[zod3327.ZodString, zod3327.ZodArray<zod3327.ZodString, "many">]>>;
|
|
11
|
+
extensionsFilters: zod3327.ZodOptional<zod3327.ZodArray<zod3327.ZodLiteral<"postgis">, "many">>;
|
|
12
|
+
entities: zod3327.ZodOptional<zod3327.ZodObject<{
|
|
13
|
+
roles: zod3327.ZodDefault<zod3327.ZodOptional<zod3327.ZodUnion<[zod3327.ZodBoolean, zod3327.ZodObject<{
|
|
14
|
+
provider: zod3327.ZodOptional<zod3327.ZodString>;
|
|
15
|
+
include: zod3327.ZodOptional<zod3327.ZodArray<zod3327.ZodString, "many">>;
|
|
16
|
+
exclude: zod3327.ZodOptional<zod3327.ZodArray<zod3327.ZodString, "many">>;
|
|
17
|
+
}, "strip", zod3327.ZodTypeAny, {
|
|
18
18
|
provider?: string | undefined;
|
|
19
19
|
include?: string[] | undefined;
|
|
20
20
|
exclude?: string[] | undefined;
|
|
@@ -23,7 +23,7 @@ declare const entitiesParams: {
|
|
|
23
23
|
include?: string[] | undefined;
|
|
24
24
|
exclude?: string[] | undefined;
|
|
25
25
|
}>]>>>;
|
|
26
|
-
}, "strip",
|
|
26
|
+
}, "strip", zod3327.ZodTypeAny, {
|
|
27
27
|
roles: boolean | {
|
|
28
28
|
provider?: string | undefined;
|
|
29
29
|
include?: string[] | undefined;
|
|
@@ -49,22 +49,22 @@ type EntitiesFilterConfig = {
|
|
|
49
49
|
};
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region src/cli/validations/postgres.d.ts
|
|
52
|
-
declare const postgresCredentials:
|
|
53
|
-
driver:
|
|
54
|
-
host:
|
|
55
|
-
port:
|
|
56
|
-
user:
|
|
57
|
-
password:
|
|
58
|
-
database:
|
|
59
|
-
ssl:
|
|
60
|
-
}, "strip",
|
|
52
|
+
declare const postgresCredentials: zod3327.ZodUnion<[zod3327.ZodEffects<zod3327.ZodObject<{
|
|
53
|
+
driver: zod3327.ZodUndefined;
|
|
54
|
+
host: zod3327.ZodString;
|
|
55
|
+
port: zod3327.ZodOptional<zod3327.ZodNumber>;
|
|
56
|
+
user: zod3327.ZodOptional<zod3327.ZodString>;
|
|
57
|
+
password: zod3327.ZodOptional<zod3327.ZodString>;
|
|
58
|
+
database: zod3327.ZodString;
|
|
59
|
+
ssl: zod3327.ZodOptional<zod3327.ZodUnion<[zod3327.ZodLiteral<"require">, zod3327.ZodLiteral<"allow">, zod3327.ZodLiteral<"prefer">, zod3327.ZodLiteral<"verify-full">, zod3327.ZodBoolean, zod3327.ZodObject<{}, "passthrough", zod3327.ZodTypeAny, zod3327.objectOutputType<{}, zod3327.ZodTypeAny, "passthrough">, zod3327.objectInputType<{}, zod3327.ZodTypeAny, "passthrough">>]>>;
|
|
60
|
+
}, "strip", zod3327.ZodTypeAny, {
|
|
61
61
|
host: string;
|
|
62
62
|
database: string;
|
|
63
63
|
password?: string | undefined;
|
|
64
64
|
driver?: undefined;
|
|
65
65
|
port?: number | undefined;
|
|
66
66
|
user?: string | undefined;
|
|
67
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" |
|
|
67
|
+
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod3327.objectOutputType<{}, zod3327.ZodTypeAny, "passthrough"> | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
host: string;
|
|
70
70
|
database: string;
|
|
@@ -72,7 +72,7 @@ declare const postgresCredentials: zod3308.ZodUnion<[zod3308.ZodEffects<zod3308.
|
|
|
72
72
|
driver?: undefined;
|
|
73
73
|
port?: number | undefined;
|
|
74
74
|
user?: string | undefined;
|
|
75
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" |
|
|
75
|
+
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod3327.objectInputType<{}, zod3327.ZodTypeAny, "passthrough"> | undefined;
|
|
76
76
|
}>, Omit<{
|
|
77
77
|
host: string;
|
|
78
78
|
database: string;
|
|
@@ -80,7 +80,7 @@ declare const postgresCredentials: zod3308.ZodUnion<[zod3308.ZodEffects<zod3308.
|
|
|
80
80
|
driver?: undefined;
|
|
81
81
|
port?: number | undefined;
|
|
82
82
|
user?: string | undefined;
|
|
83
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" |
|
|
83
|
+
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod3327.objectOutputType<{}, zod3327.ZodTypeAny, "passthrough"> | undefined;
|
|
84
84
|
}, "driver">, {
|
|
85
85
|
host: string;
|
|
86
86
|
database: string;
|
|
@@ -88,11 +88,11 @@ declare const postgresCredentials: zod3308.ZodUnion<[zod3308.ZodEffects<zod3308.
|
|
|
88
88
|
driver?: undefined;
|
|
89
89
|
port?: number | undefined;
|
|
90
90
|
user?: string | undefined;
|
|
91
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" |
|
|
92
|
-
}>,
|
|
93
|
-
driver:
|
|
94
|
-
url:
|
|
95
|
-
}, "strip",
|
|
91
|
+
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod3327.objectInputType<{}, zod3327.ZodTypeAny, "passthrough"> | undefined;
|
|
92
|
+
}>, zod3327.ZodEffects<zod3327.ZodObject<{
|
|
93
|
+
driver: zod3327.ZodUndefined;
|
|
94
|
+
url: zod3327.ZodString;
|
|
95
|
+
}, "strip", zod3327.ZodTypeAny, {
|
|
96
96
|
url: string;
|
|
97
97
|
driver?: undefined;
|
|
98
98
|
}, {
|
|
@@ -103,12 +103,12 @@ declare const postgresCredentials: zod3308.ZodUnion<[zod3308.ZodEffects<zod3308.
|
|
|
103
103
|
}, {
|
|
104
104
|
url: string;
|
|
105
105
|
driver?: undefined;
|
|
106
|
-
}>,
|
|
107
|
-
driver:
|
|
108
|
-
database:
|
|
109
|
-
secretArn:
|
|
110
|
-
resourceArn:
|
|
111
|
-
}, "strip",
|
|
106
|
+
}>, zod3327.ZodObject<{
|
|
107
|
+
driver: zod3327.ZodLiteral<"aws-data-api">;
|
|
108
|
+
database: zod3327.ZodString;
|
|
109
|
+
secretArn: zod3327.ZodString;
|
|
110
|
+
resourceArn: zod3327.ZodString;
|
|
111
|
+
}, "strip", zod3327.ZodTypeAny, {
|
|
112
112
|
driver: "aws-data-api";
|
|
113
113
|
database: string;
|
|
114
114
|
secretArn: string;
|
|
@@ -118,10 +118,10 @@ declare const postgresCredentials: zod3308.ZodUnion<[zod3308.ZodEffects<zod3308.
|
|
|
118
118
|
database: string;
|
|
119
119
|
secretArn: string;
|
|
120
120
|
resourceArn: string;
|
|
121
|
-
}>,
|
|
122
|
-
driver:
|
|
123
|
-
url:
|
|
124
|
-
}, "strip",
|
|
121
|
+
}>, zod3327.ZodObject<{
|
|
122
|
+
driver: zod3327.ZodLiteral<"pglite">;
|
|
123
|
+
url: zod3327.ZodString;
|
|
124
|
+
}, "strip", zod3327.ZodTypeAny, {
|
|
125
125
|
driver: "pglite";
|
|
126
126
|
url: string;
|
|
127
127
|
}, {
|
package/api-postgres.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as CasingType } from "./common-C4PhmYTg.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as zod3015 from "zod";
|
|
3
3
|
import { TypeOf } from "zod";
|
|
4
4
|
import { PGlite } from "@electric-sql/pglite";
|
|
5
5
|
import { PgAsyncDatabase } from "drizzle-orm/pg-core/async";
|
|
6
6
|
|
|
7
7
|
//#region src/cli/validations/cli.d.ts
|
|
8
8
|
declare const entitiesParams: {
|
|
9
|
-
tablesFilter:
|
|
10
|
-
schemaFilter:
|
|
11
|
-
extensionsFilters:
|
|
12
|
-
entities:
|
|
13
|
-
roles:
|
|
14
|
-
provider:
|
|
15
|
-
include:
|
|
16
|
-
exclude:
|
|
17
|
-
}, "strip",
|
|
9
|
+
tablesFilter: zod3015.ZodOptional<zod3015.ZodUnion<[zod3015.ZodString, zod3015.ZodArray<zod3015.ZodString, "many">]>>;
|
|
10
|
+
schemaFilter: zod3015.ZodOptional<zod3015.ZodUnion<[zod3015.ZodString, zod3015.ZodArray<zod3015.ZodString, "many">]>>;
|
|
11
|
+
extensionsFilters: zod3015.ZodOptional<zod3015.ZodArray<zod3015.ZodLiteral<"postgis">, "many">>;
|
|
12
|
+
entities: zod3015.ZodOptional<zod3015.ZodObject<{
|
|
13
|
+
roles: zod3015.ZodDefault<zod3015.ZodOptional<zod3015.ZodUnion<[zod3015.ZodBoolean, zod3015.ZodObject<{
|
|
14
|
+
provider: zod3015.ZodOptional<zod3015.ZodString>;
|
|
15
|
+
include: zod3015.ZodOptional<zod3015.ZodArray<zod3015.ZodString, "many">>;
|
|
16
|
+
exclude: zod3015.ZodOptional<zod3015.ZodArray<zod3015.ZodString, "many">>;
|
|
17
|
+
}, "strip", zod3015.ZodTypeAny, {
|
|
18
18
|
provider?: string | undefined;
|
|
19
19
|
include?: string[] | undefined;
|
|
20
20
|
exclude?: string[] | undefined;
|
|
@@ -23,7 +23,7 @@ declare const entitiesParams: {
|
|
|
23
23
|
include?: string[] | undefined;
|
|
24
24
|
exclude?: string[] | undefined;
|
|
25
25
|
}>]>>>;
|
|
26
|
-
}, "strip",
|
|
26
|
+
}, "strip", zod3015.ZodTypeAny, {
|
|
27
27
|
roles: boolean | {
|
|
28
28
|
provider?: string | undefined;
|
|
29
29
|
include?: string[] | undefined;
|
|
@@ -49,22 +49,22 @@ type EntitiesFilterConfig = {
|
|
|
49
49
|
};
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region src/cli/validations/postgres.d.ts
|
|
52
|
-
declare const postgresCredentials:
|
|
53
|
-
driver:
|
|
54
|
-
host:
|
|
55
|
-
port:
|
|
56
|
-
user:
|
|
57
|
-
password:
|
|
58
|
-
database:
|
|
59
|
-
ssl:
|
|
60
|
-
}, "strip",
|
|
52
|
+
declare const postgresCredentials: zod3015.ZodUnion<[zod3015.ZodEffects<zod3015.ZodObject<{
|
|
53
|
+
driver: zod3015.ZodUndefined;
|
|
54
|
+
host: zod3015.ZodString;
|
|
55
|
+
port: zod3015.ZodOptional<zod3015.ZodNumber>;
|
|
56
|
+
user: zod3015.ZodOptional<zod3015.ZodString>;
|
|
57
|
+
password: zod3015.ZodOptional<zod3015.ZodString>;
|
|
58
|
+
database: zod3015.ZodString;
|
|
59
|
+
ssl: zod3015.ZodOptional<zod3015.ZodUnion<[zod3015.ZodLiteral<"require">, zod3015.ZodLiteral<"allow">, zod3015.ZodLiteral<"prefer">, zod3015.ZodLiteral<"verify-full">, zod3015.ZodBoolean, zod3015.ZodObject<{}, "passthrough", zod3015.ZodTypeAny, zod3015.objectOutputType<{}, zod3015.ZodTypeAny, "passthrough">, zod3015.objectInputType<{}, zod3015.ZodTypeAny, "passthrough">>]>>;
|
|
60
|
+
}, "strip", zod3015.ZodTypeAny, {
|
|
61
61
|
host: string;
|
|
62
62
|
database: string;
|
|
63
63
|
password?: string | undefined;
|
|
64
64
|
driver?: undefined;
|
|
65
65
|
port?: number | undefined;
|
|
66
66
|
user?: string | undefined;
|
|
67
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" |
|
|
67
|
+
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod3015.objectOutputType<{}, zod3015.ZodTypeAny, "passthrough"> | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
host: string;
|
|
70
70
|
database: string;
|
|
@@ -72,7 +72,7 @@ declare const postgresCredentials: zod3398.ZodUnion<[zod3398.ZodEffects<zod3398.
|
|
|
72
72
|
driver?: undefined;
|
|
73
73
|
port?: number | undefined;
|
|
74
74
|
user?: string | undefined;
|
|
75
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" |
|
|
75
|
+
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod3015.objectInputType<{}, zod3015.ZodTypeAny, "passthrough"> | undefined;
|
|
76
76
|
}>, Omit<{
|
|
77
77
|
host: string;
|
|
78
78
|
database: string;
|
|
@@ -80,7 +80,7 @@ declare const postgresCredentials: zod3398.ZodUnion<[zod3398.ZodEffects<zod3398.
|
|
|
80
80
|
driver?: undefined;
|
|
81
81
|
port?: number | undefined;
|
|
82
82
|
user?: string | undefined;
|
|
83
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" |
|
|
83
|
+
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod3015.objectOutputType<{}, zod3015.ZodTypeAny, "passthrough"> | undefined;
|
|
84
84
|
}, "driver">, {
|
|
85
85
|
host: string;
|
|
86
86
|
database: string;
|
|
@@ -88,11 +88,11 @@ declare const postgresCredentials: zod3398.ZodUnion<[zod3398.ZodEffects<zod3398.
|
|
|
88
88
|
driver?: undefined;
|
|
89
89
|
port?: number | undefined;
|
|
90
90
|
user?: string | undefined;
|
|
91
|
-
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" |
|
|
92
|
-
}>,
|
|
93
|
-
driver:
|
|
94
|
-
url:
|
|
95
|
-
}, "strip",
|
|
91
|
+
ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | zod3015.objectInputType<{}, zod3015.ZodTypeAny, "passthrough"> | undefined;
|
|
92
|
+
}>, zod3015.ZodEffects<zod3015.ZodObject<{
|
|
93
|
+
driver: zod3015.ZodUndefined;
|
|
94
|
+
url: zod3015.ZodString;
|
|
95
|
+
}, "strip", zod3015.ZodTypeAny, {
|
|
96
96
|
url: string;
|
|
97
97
|
driver?: undefined;
|
|
98
98
|
}, {
|
|
@@ -103,12 +103,12 @@ declare const postgresCredentials: zod3398.ZodUnion<[zod3398.ZodEffects<zod3398.
|
|
|
103
103
|
}, {
|
|
104
104
|
url: string;
|
|
105
105
|
driver?: undefined;
|
|
106
|
-
}>,
|
|
107
|
-
driver:
|
|
108
|
-
database:
|
|
109
|
-
secretArn:
|
|
110
|
-
resourceArn:
|
|
111
|
-
}, "strip",
|
|
106
|
+
}>, zod3015.ZodObject<{
|
|
107
|
+
driver: zod3015.ZodLiteral<"aws-data-api">;
|
|
108
|
+
database: zod3015.ZodString;
|
|
109
|
+
secretArn: zod3015.ZodString;
|
|
110
|
+
resourceArn: zod3015.ZodString;
|
|
111
|
+
}, "strip", zod3015.ZodTypeAny, {
|
|
112
112
|
driver: "aws-data-api";
|
|
113
113
|
database: string;
|
|
114
114
|
secretArn: string;
|
|
@@ -118,10 +118,10 @@ declare const postgresCredentials: zod3398.ZodUnion<[zod3398.ZodEffects<zod3398.
|
|
|
118
118
|
database: string;
|
|
119
119
|
secretArn: string;
|
|
120
120
|
resourceArn: string;
|
|
121
|
-
}>,
|
|
122
|
-
driver:
|
|
123
|
-
url:
|
|
124
|
-
}, "strip",
|
|
121
|
+
}>, zod3015.ZodObject<{
|
|
122
|
+
driver: zod3015.ZodLiteral<"pglite">;
|
|
123
|
+
url: zod3015.ZodString;
|
|
124
|
+
}, "strip", zod3015.ZodTypeAny, {
|
|
125
125
|
driver: "pglite";
|
|
126
126
|
url: string;
|
|
127
127
|
}, {
|
package/api-postgres.js
CHANGED
|
@@ -347,7 +347,7 @@ const generateDrizzleJson = async (imports, prevId, schemaFilters, casing) => {
|
|
|
347
347
|
const { prepareEntityFilter } = await Promise.resolve().then(() => require("./pull-utils-CrV6D2HD.js"));
|
|
348
348
|
const { postgresSchemaError, postgresSchemaWarning } = await Promise.resolve().then(() => require("./views-D0K2a_QR.js"));
|
|
349
349
|
const { toJsonSnapshot } = await Promise.resolve().then(() => require("./snapshot-DO-TESB0.js"));
|
|
350
|
-
const { fromDrizzleSchema, fromExports } = await Promise.resolve().then(() => require("./drizzle-
|
|
350
|
+
const { fromDrizzleSchema, fromExports } = await Promise.resolve().then(() => require("./drizzle-Bkaxmkho.js"));
|
|
351
351
|
const { extractPostgresExisting } = await Promise.resolve().then(() => require("./drizzle-C5dbiai5.js"));
|
|
352
352
|
const prepared = fromExports(imports);
|
|
353
353
|
const existing = extractPostgresExisting(prepared.schemas, prepared.views, prepared.matViews);
|
|
@@ -382,9 +382,9 @@ const generateMigration = async (prev, cur) => {
|
|
|
382
382
|
const pushSchema = async (imports, drizzleInstance, casing, entitiesConfig, migrationsConfig) => {
|
|
383
383
|
const { prepareEntityFilter } = await Promise.resolve().then(() => require("./pull-utils-CrV6D2HD.js"));
|
|
384
384
|
const { resolver } = await Promise.resolve().then(() => require("./prompts-CA_-kJwf.js"));
|
|
385
|
-
const { fromDatabaseForDrizzle } = await Promise.resolve().then(() => require("./introspect-
|
|
386
|
-
const { fromDrizzleSchema, fromExports } = await Promise.resolve().then(() => require("./drizzle-
|
|
387
|
-
const { suggestions } = await Promise.resolve().then(() => require("./push-postgres-
|
|
385
|
+
const { fromDatabaseForDrizzle } = await Promise.resolve().then(() => require("./introspect-BvKEHEur.js"));
|
|
386
|
+
const { fromDrizzleSchema, fromExports } = await Promise.resolve().then(() => require("./drizzle-Bkaxmkho.js"));
|
|
387
|
+
const { suggestions } = await Promise.resolve().then(() => require("./push-postgres-C2eACPLD.js"));
|
|
388
388
|
const { extractPostgresExisting } = await Promise.resolve().then(() => require("./drizzle-C5dbiai5.js"));
|
|
389
389
|
const { ddlDiff } = await Promise.resolve().then(() => require("./diff-CBE2xha8.js"));
|
|
390
390
|
const { sql } = require("drizzle-orm");
|
|
@@ -422,7 +422,7 @@ const startStudioServer = async (imports, credentials, options) => {
|
|
|
422
422
|
const { is } = require("drizzle-orm");
|
|
423
423
|
const { PgTable, getTableConfig } = require("drizzle-orm/pg-core");
|
|
424
424
|
const { Relations } = require("drizzle-orm/_relations");
|
|
425
|
-
const { drizzleForPostgres, prepareServer } = await Promise.resolve().then(() => require("./studio-
|
|
425
|
+
const { drizzleForPostgres, prepareServer } = await Promise.resolve().then(() => require("./studio-Bu1qJUk2.js"));
|
|
426
426
|
const pgSchema = {};
|
|
427
427
|
const relations = {};
|
|
428
428
|
Object.entries(imports).forEach(([k, t]) => {
|
package/api-postgres.mjs
CHANGED
|
@@ -26825,7 +26825,12 @@ var init_grammar$3 = __esmMin((() => {
|
|
|
26825
26825
|
drizzleImport: () => "binary",
|
|
26826
26826
|
defaultFromDrizzle: TinyText.defaultFromDrizzle,
|
|
26827
26827
|
defaultFromIntrospect: (value$1) => {
|
|
26828
|
-
if (value$1.startsWith("0x"))
|
|
26828
|
+
if (value$1.startsWith("0x")) {
|
|
26829
|
+
if (typeof Buffer !== "undefined") return `'${Buffer.from(value$1.slice(2), "hex").toString("utf-8")}'`;
|
|
26830
|
+
const matches = value$1.slice(2).match(/.{1,2}/g) ?? [];
|
|
26831
|
+
const bytes = new Uint8Array(matches.map((b$4) => parseInt(b$4, 16)));
|
|
26832
|
+
return `'${new TextDecoder().decode(bytes)}'`;
|
|
26833
|
+
}
|
|
26829
26834
|
return value$1;
|
|
26830
26835
|
},
|
|
26831
26836
|
toTs: TinyText.toTs
|
|
@@ -77205,8 +77210,8 @@ var init_introspect = __esmMin((() => {
|
|
|
77205
77210
|
const checks = [];
|
|
77206
77211
|
const sequences = [];
|
|
77207
77212
|
const roles = [];
|
|
77208
|
-
const privileges = [];
|
|
77209
77213
|
const policies = [];
|
|
77214
|
+
const privileges = [];
|
|
77210
77215
|
const views = [];
|
|
77211
77216
|
const viewColumns = [];
|
|
77212
77217
|
const accessMethodsQuery = db.query(`SELECT oid, amname as name FROM pg_catalog.pg_am WHERE amtype OPERATOR(pg_catalog.=) 't' ORDER BY pg_catalog.lower(amname);`).then((rows) => {
|
|
@@ -77263,6 +77268,7 @@ var init_introspect = __esmMin((() => {
|
|
|
77263
77268
|
entityType: "schemas",
|
|
77264
77269
|
name: it$1.name
|
|
77265
77270
|
})));
|
|
77271
|
+
progressCallback("tables", 0, "fetching");
|
|
77266
77272
|
const tablesList = filteredNamespacesStringForSQL ? await db.query(`
|
|
77267
77273
|
SELECT
|
|
77268
77274
|
pg_class.oid,
|
|
@@ -77311,6 +77317,7 @@ var init_introspect = __esmMin((() => {
|
|
|
77311
77317
|
name: table$5.name,
|
|
77312
77318
|
isRlsEnabled: table$5.rlsEnabled
|
|
77313
77319
|
});
|
|
77320
|
+
progressCallback("tables", tables.length, "done");
|
|
77314
77321
|
const dependQuery = db.query(`SELECT
|
|
77315
77322
|
objid as oid,
|
|
77316
77323
|
refobjid as "tableId",
|
|
@@ -77325,6 +77332,7 @@ var init_introspect = __esmMin((() => {
|
|
|
77325
77332
|
queryCallback("depend", [], err$1);
|
|
77326
77333
|
throw err$1;
|
|
77327
77334
|
});
|
|
77335
|
+
progressCallback("enums", 0, "fetching");
|
|
77328
77336
|
const enumsQuery = filteredNamespacesStringForSQL ? db.query(`SELECT
|
|
77329
77337
|
pg_type.oid as "oid",
|
|
77330
77338
|
typname as "name",
|
|
@@ -77384,6 +77392,7 @@ var init_introspect = __esmMin((() => {
|
|
|
77384
77392
|
queryCallback("sequences", [], err$1);
|
|
77385
77393
|
throw err$1;
|
|
77386
77394
|
}) : [];
|
|
77395
|
+
progressCallback("policies", 0, "fetching");
|
|
77387
77396
|
const policiesQuery = db.query(`SELECT
|
|
77388
77397
|
schemaname as "schema",
|
|
77389
77398
|
tablename as "table",
|
|
@@ -77445,6 +77454,8 @@ var init_introspect = __esmMin((() => {
|
|
|
77445
77454
|
queryCallback("privileges", [], error$3);
|
|
77446
77455
|
throw error$3;
|
|
77447
77456
|
}) : [];
|
|
77457
|
+
progressCallback("fks", 0, "fetching");
|
|
77458
|
+
progressCallback("checks", 0, "fetching");
|
|
77448
77459
|
const constraintsQuery = db.query(`
|
|
77449
77460
|
SELECT
|
|
77450
77461
|
oid,
|
|
@@ -77470,6 +77481,7 @@ var init_introspect = __esmMin((() => {
|
|
|
77470
77481
|
queryCallback("constraints", [], err$1);
|
|
77471
77482
|
throw err$1;
|
|
77472
77483
|
});
|
|
77484
|
+
progressCallback("columns", 0, "fetching");
|
|
77473
77485
|
const columnsQuery = db.query(`SELECT
|
|
77474
77486
|
attrelid AS "tableId",
|
|
77475
77487
|
relkind AS "kind",
|
|
@@ -77564,6 +77576,7 @@ var init_introspect = __esmMin((() => {
|
|
|
77564
77576
|
name: it$1.name,
|
|
77565
77577
|
values: it$1.values
|
|
77566
77578
|
});
|
|
77579
|
+
progressCallback("enums", enums.length, "done");
|
|
77567
77580
|
for (const seq of sequencesList) {
|
|
77568
77581
|
const depend = dependList.find((it$1) => Number(it$1.oid) === Number(seq.oid));
|
|
77569
77582
|
if (depend && (depend.deptype === "a" || depend.deptype === "i")) continue;
|
|
@@ -77614,6 +77627,7 @@ var init_introspect = __esmMin((() => {
|
|
|
77614
77627
|
using: it$1.using ?? null,
|
|
77615
77628
|
withCheck: it$1.withCheck ?? null
|
|
77616
77629
|
});
|
|
77630
|
+
progressCallback("policies", policies.length, "done");
|
|
77617
77631
|
for (const column$6 of columnsList.filter((x$5) => x$5.kind === "r" || x$5.kind === "p")) {
|
|
77618
77632
|
const type = column$6.type;
|
|
77619
77633
|
if (!(type === "smallint" || type === "bigint" || type === "integer")) continue;
|
|
@@ -77672,6 +77686,7 @@ var init_introspect = __esmMin((() => {
|
|
|
77672
77686
|
} : null
|
|
77673
77687
|
});
|
|
77674
77688
|
}
|
|
77689
|
+
progressCallback("columns", columns.length, "done");
|
|
77675
77690
|
for (const unique of constraintsList.filter((it$1) => it$1.type === "u")) {
|
|
77676
77691
|
const table$5 = tablesList.find((it$1) => Number(it$1.oid) === Number(unique.tableId));
|
|
77677
77692
|
const schema$4 = namespaces.find((it$1) => Number(it$1.oid) === Number(unique.schemaId));
|
|
@@ -77727,6 +77742,7 @@ var init_introspect = __esmMin((() => {
|
|
|
77727
77742
|
onDelete: parseOnType(fk$4.onDelete)
|
|
77728
77743
|
});
|
|
77729
77744
|
}
|
|
77745
|
+
progressCallback("fks", fks.length, "done");
|
|
77730
77746
|
for (const check of constraintsList.filter((it$1) => it$1.type === "c")) {
|
|
77731
77747
|
const table$5 = tablesList.find((it$1) => Number(it$1.oid) === Number(check.tableId));
|
|
77732
77748
|
const schema$4 = namespaces.find((it$1) => Number(it$1.oid) === Number(check.schemaId));
|
|
@@ -77738,6 +77754,7 @@ var init_introspect = __esmMin((() => {
|
|
|
77738
77754
|
value: check.definition.startsWith("CHECK (") ? check.definition.slice(7, -1) : check.definition
|
|
77739
77755
|
});
|
|
77740
77756
|
}
|
|
77757
|
+
progressCallback("checks", checks.length, "done");
|
|
77741
77758
|
const idxs = await db.query(`
|
|
77742
77759
|
SELECT
|
|
77743
77760
|
pg_class.oid,
|
|
@@ -77860,6 +77877,7 @@ var init_introspect = __esmMin((() => {
|
|
|
77860
77877
|
forPK
|
|
77861
77878
|
});
|
|
77862
77879
|
}
|
|
77880
|
+
progressCallback("indexes", indexes.length, "done");
|
|
77863
77881
|
for (const it$1 of columnsList.filter((x$5) => x$5.kind === "m" || x$5.kind === "v")) {
|
|
77864
77882
|
const view$4 = viewsList.find((x$5) => Number(x$5.oid) === Number(it$1.tableId));
|
|
77865
77883
|
const typeDimensions = it$1.type.split("[]").length - 1;
|
|
@@ -77931,14 +77949,7 @@ var init_introspect = __esmMin((() => {
|
|
|
77931
77949
|
withNoData: null
|
|
77932
77950
|
});
|
|
77933
77951
|
}
|
|
77934
|
-
progressCallback("
|
|
77935
|
-
progressCallback("columns", columnsList.length, "done");
|
|
77936
|
-
progressCallback("checks", checks.length, "done");
|
|
77937
|
-
progressCallback("indexes", indexes.length, "fetching");
|
|
77938
|
-
progressCallback("views", viewsList.length, "done");
|
|
77939
|
-
progressCallback("fks", fks.length, "done");
|
|
77940
|
-
progressCallback("enums", Object.keys(groupedEnums).length, "done");
|
|
77941
|
-
progressCallback("policies", policiesList.length, "done");
|
|
77952
|
+
progressCallback("views", views.length, "done");
|
|
77942
77953
|
const resultSchemas = schemas.filter((x$5) => filter$1({
|
|
77943
77954
|
type: "schema",
|
|
77944
77955
|
name: x$5.name
|
|
@@ -96058,7 +96069,6 @@ var init_cbor$1 = __esmMin((() => {
|
|
|
96058
96069
|
//#region ../node_modules/.pnpm/@smithy+core@3.18.5/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js
|
|
96059
96070
|
var dateToTag, loadSmithyRpcV2CborErrorCode;
|
|
96060
96071
|
var init_parseCborBody = __esmMin((() => {
|
|
96061
|
-
init_protocols$1();
|
|
96062
96072
|
init_cbor_types();
|
|
96063
96073
|
dateToTag = (date$1) => {
|
|
96064
96074
|
return tag({
|
package/api-sqlite.js
CHANGED
|
@@ -5,7 +5,7 @@ const startStudioServer = async (imports, credentials, options) => {
|
|
|
5
5
|
const { is } = require("drizzle-orm");
|
|
6
6
|
const { SQLiteTable } = require("drizzle-orm/sqlite-core");
|
|
7
7
|
const { Relations } = require("drizzle-orm/_relations");
|
|
8
|
-
const { drizzleForSQLite, prepareServer } = await Promise.resolve().then(() => require("./studio-
|
|
8
|
+
const { drizzleForSQLite, prepareServer } = await Promise.resolve().then(() => require("./studio-Bu1qJUk2.js"));
|
|
9
9
|
const sqliteSchema = {};
|
|
10
10
|
const relations = {};
|
|
11
11
|
Object.entries(imports).forEach(([k, t]) => {
|
package/api-sqlite.mjs
CHANGED
|
@@ -9314,7 +9314,12 @@ var init_grammar$4 = __esmMin((() => {
|
|
|
9314
9314
|
drizzleImport: () => "binary",
|
|
9315
9315
|
defaultFromDrizzle: TinyText.defaultFromDrizzle,
|
|
9316
9316
|
defaultFromIntrospect: (value$1) => {
|
|
9317
|
-
if (value$1.startsWith("0x"))
|
|
9317
|
+
if (value$1.startsWith("0x")) {
|
|
9318
|
+
if (typeof Buffer !== "undefined") return `'${Buffer.from(value$1.slice(2), "hex").toString("utf-8")}'`;
|
|
9319
|
+
const matches = value$1.slice(2).match(/.{1,2}/g) ?? [];
|
|
9320
|
+
const bytes = new Uint8Array(matches.map((b$4) => parseInt(b$4, 16)));
|
|
9321
|
+
return `'${new TextDecoder().decode(bytes)}'`;
|
|
9322
|
+
}
|
|
9318
9323
|
return value$1;
|
|
9319
9324
|
},
|
|
9320
9325
|
toTs: TinyText.toTs
|