drizzle-kit 1.0.0-beta.6-051f3cd → 1.0.0-beta.6-cd45bda
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.mjs +3917 -7827
- package/api-postgres.d.mts +38 -38
- package/api-postgres.d.ts +38 -38
- package/api-postgres.mjs +4064 -7975
- package/api-sqlite.mjs +3917 -7827
- package/bin.cjs +7965 -11992
- package/package.json +2 -1
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 zod3321 from "zod";
|
|
3
3
|
import { TypeOf } from "zod";
|
|
4
4
|
import { PGlite } from "@electric-sql/pglite";
|
|
5
5
|
import { PgDatabase } from "drizzle-orm/pg-core";
|
|
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: zod3321.ZodOptional<zod3321.ZodUnion<[zod3321.ZodString, zod3321.ZodArray<zod3321.ZodString, "many">]>>;
|
|
10
|
+
schemaFilter: zod3321.ZodOptional<zod3321.ZodUnion<[zod3321.ZodString, zod3321.ZodArray<zod3321.ZodString, "many">]>>;
|
|
11
|
+
extensionsFilters: zod3321.ZodOptional<zod3321.ZodArray<zod3321.ZodLiteral<"postgis">, "many">>;
|
|
12
|
+
entities: zod3321.ZodOptional<zod3321.ZodObject<{
|
|
13
|
+
roles: zod3321.ZodDefault<zod3321.ZodOptional<zod3321.ZodUnion<[zod3321.ZodBoolean, zod3321.ZodObject<{
|
|
14
|
+
provider: zod3321.ZodOptional<zod3321.ZodString>;
|
|
15
|
+
include: zod3321.ZodOptional<zod3321.ZodArray<zod3321.ZodString, "many">>;
|
|
16
|
+
exclude: zod3321.ZodOptional<zod3321.ZodArray<zod3321.ZodString, "many">>;
|
|
17
|
+
}, "strip", zod3321.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", zod3321.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: zod3321.ZodUnion<[zod3321.ZodEffects<zod3321.ZodObject<{
|
|
53
|
+
driver: zod3321.ZodUndefined;
|
|
54
|
+
host: zod3321.ZodString;
|
|
55
|
+
port: zod3321.ZodOptional<zod3321.ZodNumber>;
|
|
56
|
+
user: zod3321.ZodOptional<zod3321.ZodString>;
|
|
57
|
+
password: zod3321.ZodOptional<zod3321.ZodString>;
|
|
58
|
+
database: zod3321.ZodString;
|
|
59
|
+
ssl: zod3321.ZodOptional<zod3321.ZodUnion<[zod3321.ZodLiteral<"require">, zod3321.ZodLiteral<"allow">, zod3321.ZodLiteral<"prefer">, zod3321.ZodLiteral<"verify-full">, zod3321.ZodBoolean, zod3321.ZodObject<{}, "passthrough", zod3321.ZodTypeAny, zod3321.objectOutputType<{}, zod3321.ZodTypeAny, "passthrough">, zod3321.objectInputType<{}, zod3321.ZodTypeAny, "passthrough">>]>>;
|
|
60
|
+
}, "strip", zod3321.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" | zod3321.objectOutputType<{}, zod3321.ZodTypeAny, "passthrough"> | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
host: string;
|
|
70
70
|
database: string;
|
|
@@ -72,7 +72,7 @@ declare const postgresCredentials: zod3015.ZodUnion<[zod3015.ZodEffects<zod3015.
|
|
|
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" | zod3321.objectInputType<{}, zod3321.ZodTypeAny, "passthrough"> | undefined;
|
|
76
76
|
}>, Omit<{
|
|
77
77
|
host: string;
|
|
78
78
|
database: string;
|
|
@@ -80,7 +80,7 @@ declare const postgresCredentials: zod3015.ZodUnion<[zod3015.ZodEffects<zod3015.
|
|
|
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" | zod3321.objectOutputType<{}, zod3321.ZodTypeAny, "passthrough"> | undefined;
|
|
84
84
|
}, "driver">, {
|
|
85
85
|
host: string;
|
|
86
86
|
database: string;
|
|
@@ -88,11 +88,11 @@ declare const postgresCredentials: zod3015.ZodUnion<[zod3015.ZodEffects<zod3015.
|
|
|
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" | zod3321.objectInputType<{}, zod3321.ZodTypeAny, "passthrough"> | undefined;
|
|
92
|
+
}>, zod3321.ZodEffects<zod3321.ZodObject<{
|
|
93
|
+
driver: zod3321.ZodUndefined;
|
|
94
|
+
url: zod3321.ZodString;
|
|
95
|
+
}, "strip", zod3321.ZodTypeAny, {
|
|
96
96
|
url: string;
|
|
97
97
|
driver?: undefined;
|
|
98
98
|
}, {
|
|
@@ -103,12 +103,12 @@ declare const postgresCredentials: zod3015.ZodUnion<[zod3015.ZodEffects<zod3015.
|
|
|
103
103
|
}, {
|
|
104
104
|
url: string;
|
|
105
105
|
driver?: undefined;
|
|
106
|
-
}>,
|
|
107
|
-
driver:
|
|
108
|
-
database:
|
|
109
|
-
secretArn:
|
|
110
|
-
resourceArn:
|
|
111
|
-
}, "strip",
|
|
106
|
+
}>, zod3321.ZodObject<{
|
|
107
|
+
driver: zod3321.ZodLiteral<"aws-data-api">;
|
|
108
|
+
database: zod3321.ZodString;
|
|
109
|
+
secretArn: zod3321.ZodString;
|
|
110
|
+
resourceArn: zod3321.ZodString;
|
|
111
|
+
}, "strip", zod3321.ZodTypeAny, {
|
|
112
112
|
driver: "aws-data-api";
|
|
113
113
|
database: string;
|
|
114
114
|
secretArn: string;
|
|
@@ -118,10 +118,10 @@ declare const postgresCredentials: zod3015.ZodUnion<[zod3015.ZodEffects<zod3015.
|
|
|
118
118
|
database: string;
|
|
119
119
|
secretArn: string;
|
|
120
120
|
resourceArn: string;
|
|
121
|
-
}>,
|
|
122
|
-
driver:
|
|
123
|
-
url:
|
|
124
|
-
}, "strip",
|
|
121
|
+
}>, zod3321.ZodObject<{
|
|
122
|
+
driver: zod3321.ZodLiteral<"pglite">;
|
|
123
|
+
url: zod3321.ZodString;
|
|
124
|
+
}, "strip", zod3321.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 zod3340 from "zod";
|
|
3
3
|
import { TypeOf } from "zod";
|
|
4
4
|
import { PGlite } from "@electric-sql/pglite";
|
|
5
5
|
import { PgDatabase } from "drizzle-orm/pg-core";
|
|
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: zod3340.ZodOptional<zod3340.ZodUnion<[zod3340.ZodString, zod3340.ZodArray<zod3340.ZodString, "many">]>>;
|
|
10
|
+
schemaFilter: zod3340.ZodOptional<zod3340.ZodUnion<[zod3340.ZodString, zod3340.ZodArray<zod3340.ZodString, "many">]>>;
|
|
11
|
+
extensionsFilters: zod3340.ZodOptional<zod3340.ZodArray<zod3340.ZodLiteral<"postgis">, "many">>;
|
|
12
|
+
entities: zod3340.ZodOptional<zod3340.ZodObject<{
|
|
13
|
+
roles: zod3340.ZodDefault<zod3340.ZodOptional<zod3340.ZodUnion<[zod3340.ZodBoolean, zod3340.ZodObject<{
|
|
14
|
+
provider: zod3340.ZodOptional<zod3340.ZodString>;
|
|
15
|
+
include: zod3340.ZodOptional<zod3340.ZodArray<zod3340.ZodString, "many">>;
|
|
16
|
+
exclude: zod3340.ZodOptional<zod3340.ZodArray<zod3340.ZodString, "many">>;
|
|
17
|
+
}, "strip", zod3340.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", zod3340.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: zod3340.ZodUnion<[zod3340.ZodEffects<zod3340.ZodObject<{
|
|
53
|
+
driver: zod3340.ZodUndefined;
|
|
54
|
+
host: zod3340.ZodString;
|
|
55
|
+
port: zod3340.ZodOptional<zod3340.ZodNumber>;
|
|
56
|
+
user: zod3340.ZodOptional<zod3340.ZodString>;
|
|
57
|
+
password: zod3340.ZodOptional<zod3340.ZodString>;
|
|
58
|
+
database: zod3340.ZodString;
|
|
59
|
+
ssl: zod3340.ZodOptional<zod3340.ZodUnion<[zod3340.ZodLiteral<"require">, zod3340.ZodLiteral<"allow">, zod3340.ZodLiteral<"prefer">, zod3340.ZodLiteral<"verify-full">, zod3340.ZodBoolean, zod3340.ZodObject<{}, "passthrough", zod3340.ZodTypeAny, zod3340.objectOutputType<{}, zod3340.ZodTypeAny, "passthrough">, zod3340.objectInputType<{}, zod3340.ZodTypeAny, "passthrough">>]>>;
|
|
60
|
+
}, "strip", zod3340.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" | zod3340.objectOutputType<{}, zod3340.ZodTypeAny, "passthrough"> | undefined;
|
|
68
68
|
}, {
|
|
69
69
|
host: string;
|
|
70
70
|
database: string;
|
|
@@ -72,7 +72,7 @@ declare const postgresCredentials: zod3015.ZodUnion<[zod3015.ZodEffects<zod3015.
|
|
|
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" | zod3340.objectInputType<{}, zod3340.ZodTypeAny, "passthrough"> | undefined;
|
|
76
76
|
}>, Omit<{
|
|
77
77
|
host: string;
|
|
78
78
|
database: string;
|
|
@@ -80,7 +80,7 @@ declare const postgresCredentials: zod3015.ZodUnion<[zod3015.ZodEffects<zod3015.
|
|
|
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" | zod3340.objectOutputType<{}, zod3340.ZodTypeAny, "passthrough"> | undefined;
|
|
84
84
|
}, "driver">, {
|
|
85
85
|
host: string;
|
|
86
86
|
database: string;
|
|
@@ -88,11 +88,11 @@ declare const postgresCredentials: zod3015.ZodUnion<[zod3015.ZodEffects<zod3015.
|
|
|
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" | zod3340.objectInputType<{}, zod3340.ZodTypeAny, "passthrough"> | undefined;
|
|
92
|
+
}>, zod3340.ZodEffects<zod3340.ZodObject<{
|
|
93
|
+
driver: zod3340.ZodUndefined;
|
|
94
|
+
url: zod3340.ZodString;
|
|
95
|
+
}, "strip", zod3340.ZodTypeAny, {
|
|
96
96
|
url: string;
|
|
97
97
|
driver?: undefined;
|
|
98
98
|
}, {
|
|
@@ -103,12 +103,12 @@ declare const postgresCredentials: zod3015.ZodUnion<[zod3015.ZodEffects<zod3015.
|
|
|
103
103
|
}, {
|
|
104
104
|
url: string;
|
|
105
105
|
driver?: undefined;
|
|
106
|
-
}>,
|
|
107
|
-
driver:
|
|
108
|
-
database:
|
|
109
|
-
secretArn:
|
|
110
|
-
resourceArn:
|
|
111
|
-
}, "strip",
|
|
106
|
+
}>, zod3340.ZodObject<{
|
|
107
|
+
driver: zod3340.ZodLiteral<"aws-data-api">;
|
|
108
|
+
database: zod3340.ZodString;
|
|
109
|
+
secretArn: zod3340.ZodString;
|
|
110
|
+
resourceArn: zod3340.ZodString;
|
|
111
|
+
}, "strip", zod3340.ZodTypeAny, {
|
|
112
112
|
driver: "aws-data-api";
|
|
113
113
|
database: string;
|
|
114
114
|
secretArn: string;
|
|
@@ -118,10 +118,10 @@ declare const postgresCredentials: zod3015.ZodUnion<[zod3015.ZodEffects<zod3015.
|
|
|
118
118
|
database: string;
|
|
119
119
|
secretArn: string;
|
|
120
120
|
resourceArn: string;
|
|
121
|
-
}>,
|
|
122
|
-
driver:
|
|
123
|
-
url:
|
|
124
|
-
}, "strip",
|
|
121
|
+
}>, zod3340.ZodObject<{
|
|
122
|
+
driver: zod3340.ZodLiteral<"pglite">;
|
|
123
|
+
url: zod3340.ZodString;
|
|
124
|
+
}, "strip", zod3340.ZodTypeAny, {
|
|
125
125
|
driver: "pglite";
|
|
126
126
|
url: string;
|
|
127
127
|
}, {
|