drizzle-kit 0.30.2 → 0.30.3-19ccabb
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.js +2841 -1823
- package/api.mjs +2841 -1823
- package/bin.cjs +52 -50
- package/package.json +1 -1
package/bin.cjs
CHANGED
@@ -35800,7 +35800,7 @@ var init_utils5 = __esm({
|
|
35800
35800
|
assertOrmCoreVersion = async () => {
|
35801
35801
|
try {
|
35802
35802
|
const { compatibilityVersion } = await import("drizzle-orm/version");
|
35803
|
-
await import("drizzle-orm/
|
35803
|
+
await import("drizzle-orm/_relations");
|
35804
35804
|
if (compatibilityVersion && compatibilityVersion === requiredApiVersion) {
|
35805
35805
|
return;
|
35806
35806
|
}
|
@@ -58819,9 +58819,9 @@ var require_dist_cjs46 = __commonJS({
|
|
58819
58819
|
}
|
58820
58820
|
});
|
58821
58821
|
|
58822
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js
|
58822
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js
|
58823
58823
|
var require_httpAuthSchemeProvider3 = __commonJS({
|
58824
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
58824
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
58825
58825
|
"use strict";
|
58826
58826
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
58827
58827
|
exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOOIDCHttpAuthSchemeProvider = exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
|
@@ -58888,9 +58888,9 @@ var require_httpAuthSchemeProvider3 = __commonJS({
|
|
58888
58888
|
}
|
58889
58889
|
});
|
58890
58890
|
|
58891
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json
|
58891
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json
|
58892
58892
|
var require_package4 = __commonJS({
|
58893
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json"(exports2, module2) {
|
58893
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json"(exports2, module2) {
|
58894
58894
|
module2.exports = {
|
58895
58895
|
name: "@aws-sdk/client-sso-oidc",
|
58896
58896
|
description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
@@ -58994,9 +58994,9 @@ var require_package4 = __commonJS({
|
|
58994
58994
|
}
|
58995
58995
|
});
|
58996
58996
|
|
58997
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js
|
58997
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js
|
58998
58998
|
var require_ruleset2 = __commonJS({
|
58999
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports2) {
|
58999
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports2) {
|
59000
59000
|
"use strict";
|
59001
59001
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59002
59002
|
exports2.ruleSet = void 0;
|
@@ -59029,9 +59029,9 @@ var require_ruleset2 = __commonJS({
|
|
59029
59029
|
}
|
59030
59030
|
});
|
59031
59031
|
|
59032
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js
|
59032
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js
|
59033
59033
|
var require_endpointResolver2 = __commonJS({
|
59034
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
59034
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
59035
59035
|
"use strict";
|
59036
59036
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59037
59037
|
exports2.defaultEndpointResolver = void 0;
|
@@ -59049,9 +59049,9 @@ var require_endpointResolver2 = __commonJS({
|
|
59049
59049
|
}
|
59050
59050
|
});
|
59051
59051
|
|
59052
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js
|
59052
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js
|
59053
59053
|
var require_runtimeConfig_shared2 = __commonJS({
|
59054
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
59054
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
59055
59055
|
"use strict";
|
59056
59056
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59057
59057
|
exports2.getRuntimeConfig = void 0;
|
@@ -59095,9 +59095,9 @@ var require_runtimeConfig_shared2 = __commonJS({
|
|
59095
59095
|
}
|
59096
59096
|
});
|
59097
59097
|
|
59098
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js
|
59098
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js
|
59099
59099
|
var require_runtimeConfig2 = __commonJS({
|
59100
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports2) {
|
59100
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports2) {
|
59101
59101
|
"use strict";
|
59102
59102
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
59103
59103
|
exports2.getRuntimeConfig = void 0;
|
@@ -59148,9 +59148,9 @@ var require_runtimeConfig2 = __commonJS({
|
|
59148
59148
|
}
|
59149
59149
|
});
|
59150
59150
|
|
59151
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js
|
59151
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js
|
59152
59152
|
var require_dist_cjs47 = __commonJS({
|
59153
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) {
|
59153
|
+
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0_@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) {
|
59154
59154
|
"use strict";
|
59155
59155
|
var __defProp3 = Object.defineProperty;
|
59156
59156
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
@@ -60496,9 +60496,9 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
60496
60496
|
}
|
60497
60497
|
});
|
60498
60498
|
|
60499
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60499
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js
|
60500
60500
|
var require_httpAuthSchemeProvider4 = __commonJS({
|
60501
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60501
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
60502
60502
|
"use strict";
|
60503
60503
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60504
60504
|
exports2.resolveHttpAuthSchemeConfig = exports2.resolveStsAuthConfig = exports2.defaultSTSHttpAuthSchemeProvider = exports2.defaultSTSHttpAuthSchemeParametersProvider = void 0;
|
@@ -60568,9 +60568,9 @@ var require_httpAuthSchemeProvider4 = __commonJS({
|
|
60568
60568
|
}
|
60569
60569
|
});
|
60570
60570
|
|
60571
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60571
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js
|
60572
60572
|
var require_EndpointParameters = __commonJS({
|
60573
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60573
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js"(exports2) {
|
60574
60574
|
"use strict";
|
60575
60575
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60576
60576
|
exports2.commonParams = exports2.resolveClientEndpointParameters = void 0;
|
@@ -60594,9 +60594,9 @@ var require_EndpointParameters = __commonJS({
|
|
60594
60594
|
}
|
60595
60595
|
});
|
60596
60596
|
|
60597
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60597
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/package.json
|
60598
60598
|
var require_package5 = __commonJS({
|
60599
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60599
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/package.json"(exports2, module2) {
|
60600
60600
|
module2.exports = {
|
60601
60601
|
name: "@aws-sdk/client-sts",
|
60602
60602
|
description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
@@ -60702,9 +60702,9 @@ var require_package5 = __commonJS({
|
|
60702
60702
|
}
|
60703
60703
|
});
|
60704
60704
|
|
60705
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60705
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js
|
60706
60706
|
var require_ruleset3 = __commonJS({
|
60707
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60707
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports2) {
|
60708
60708
|
"use strict";
|
60709
60709
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60710
60710
|
exports2.ruleSet = void 0;
|
@@ -60749,9 +60749,9 @@ var require_ruleset3 = __commonJS({
|
|
60749
60749
|
}
|
60750
60750
|
});
|
60751
60751
|
|
60752
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60752
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js
|
60753
60753
|
var require_endpointResolver3 = __commonJS({
|
60754
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60754
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
60755
60755
|
"use strict";
|
60756
60756
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60757
60757
|
exports2.defaultEndpointResolver = void 0;
|
@@ -60769,9 +60769,9 @@ var require_endpointResolver3 = __commonJS({
|
|
60769
60769
|
}
|
60770
60770
|
});
|
60771
60771
|
|
60772
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60772
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js
|
60773
60773
|
var require_runtimeConfig_shared3 = __commonJS({
|
60774
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60774
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
60775
60775
|
"use strict";
|
60776
60776
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60777
60777
|
exports2.getRuntimeConfig = void 0;
|
@@ -60815,9 +60815,9 @@ var require_runtimeConfig_shared3 = __commonJS({
|
|
60815
60815
|
}
|
60816
60816
|
});
|
60817
60817
|
|
60818
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60818
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
|
60819
60819
|
var require_runtimeConfig3 = __commonJS({
|
60820
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60820
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports2) {
|
60821
60821
|
"use strict";
|
60822
60822
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60823
60823
|
exports2.getRuntimeConfig = void 0;
|
@@ -60881,9 +60881,9 @@ var require_runtimeConfig3 = __commonJS({
|
|
60881
60881
|
}
|
60882
60882
|
});
|
60883
60883
|
|
60884
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60884
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js
|
60885
60885
|
var require_httpAuthExtensionConfiguration = __commonJS({
|
60886
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60886
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js"(exports2) {
|
60887
60887
|
"use strict";
|
60888
60888
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60889
60889
|
exports2.resolveHttpAuthRuntimeConfig = exports2.getHttpAuthExtensionConfiguration = void 0;
|
@@ -60929,9 +60929,9 @@ var require_httpAuthExtensionConfiguration = __commonJS({
|
|
60929
60929
|
}
|
60930
60930
|
});
|
60931
60931
|
|
60932
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60932
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js
|
60933
60933
|
var require_runtimeExtensions = __commonJS({
|
60934
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60934
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js"(exports2) {
|
60935
60935
|
"use strict";
|
60936
60936
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60937
60937
|
exports2.resolveRuntimeExtensions = void 0;
|
@@ -60960,9 +60960,9 @@ var require_runtimeExtensions = __commonJS({
|
|
60960
60960
|
}
|
60961
60961
|
});
|
60962
60962
|
|
60963
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60963
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js
|
60964
60964
|
var require_STSClient = __commonJS({
|
60965
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
60965
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports2) {
|
60966
60966
|
"use strict";
|
60967
60967
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
60968
60968
|
exports2.STSClient = exports2.__Client = void 0;
|
@@ -61024,9 +61024,9 @@ var require_STSClient = __commonJS({
|
|
61024
61024
|
}
|
61025
61025
|
});
|
61026
61026
|
|
61027
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
61027
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js
|
61028
61028
|
var require_dist_cjs50 = __commonJS({
|
61029
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
61029
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2, module2) {
|
61030
61030
|
"use strict";
|
61031
61031
|
var __defProp3 = Object.defineProperty;
|
61032
61032
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
@@ -64366,6 +64366,7 @@ var init_connections = __esm({
|
|
64366
64366
|
rdsClient,
|
64367
64367
|
new PgDialect2(),
|
64368
64368
|
void 0,
|
64369
|
+
void 0,
|
64369
64370
|
config,
|
64370
64371
|
void 0
|
64371
64372
|
);
|
@@ -69182,7 +69183,7 @@ var init_introspect_pg = __esm({
|
|
69182
69183
|
"src/introspect-pg.ts"() {
|
69183
69184
|
"use strict";
|
69184
69185
|
import_drizzle_orm9 = require("drizzle-orm");
|
69185
|
-
import_relations = require("drizzle-orm/
|
69186
|
+
import_relations = require("drizzle-orm/_relations");
|
69186
69187
|
init_utils();
|
69187
69188
|
import_casing4 = require("drizzle-orm/casing");
|
69188
69189
|
init_global();
|
@@ -71033,7 +71034,7 @@ var init_introspect = __esm({
|
|
71033
71034
|
});
|
71034
71035
|
});
|
71035
71036
|
const uniqueImports = [...new Set(imports)];
|
71036
|
-
const importsTs = `import { relations } from "drizzle-orm/
|
71037
|
+
const importsTs = `import { relations } from "drizzle-orm/_relations";
|
71037
71038
|
import { ${uniqueImports.join(
|
71038
71039
|
", "
|
71039
71040
|
)} } from "./schema";
|
@@ -74399,7 +74400,7 @@ __export(studio_exports, {
|
|
74399
74400
|
prepareServer: () => prepareServer,
|
74400
74401
|
prepareSingleStoreSchema: () => prepareSingleStoreSchema
|
74401
74402
|
});
|
74402
|
-
var import_crypto9, import_drizzle_orm10, import_mysql_core3, import_pg_core3, import_singlestore_core3, import_sqlite_core3, import_fs12, import_node_https2, preparePgSchema, prepareMySqlSchema, prepareSQLiteSchema, prepareSingleStoreSchema, getCustomDefaults, drizzleForPostgres, drizzleForMySQL, drizzleForSQLite, drizzleForLibSQL, drizzleForSingleStore, extractRelations, init, proxySchema, defaultsSchema, schema5, jsonStringify, prepareServer;
|
74403
|
+
var import_crypto9, import_drizzle_orm10, import_relations2, import_mysql_core3, import_pg_core3, import_singlestore_core3, import_sqlite_core3, import_fs12, import_node_https2, preparePgSchema, prepareMySqlSchema, prepareSQLiteSchema, prepareSingleStoreSchema, getCustomDefaults, drizzleForPostgres, drizzleForMySQL, drizzleForSQLite, drizzleForLibSQL, drizzleForSingleStore, extractRelations, init, proxySchema, defaultsSchema, schema5, jsonStringify, prepareServer;
|
74403
74404
|
var init_studio2 = __esm({
|
74404
74405
|
"src/serializer/studio.ts"() {
|
74405
74406
|
"use strict";
|
@@ -74407,6 +74408,7 @@ var init_studio2 = __esm({
|
|
74407
74408
|
init_esm();
|
74408
74409
|
import_crypto9 = require("crypto");
|
74409
74410
|
import_drizzle_orm10 = require("drizzle-orm");
|
74411
|
+
import_relations2 = require("drizzle-orm/_relations");
|
74410
74412
|
import_mysql_core3 = require("drizzle-orm/mysql-core");
|
74411
74413
|
import_pg_core3 = require("drizzle-orm/pg-core");
|
74412
74414
|
import_singlestore_core3 = require("drizzle-orm/singlestore-core");
|
@@ -74441,7 +74443,7 @@ var init_studio2 = __esm({
|
|
74441
74443
|
pgSchema2[schema6] = pgSchema2[schema6] || {};
|
74442
74444
|
pgSchema2[schema6][k] = t2;
|
74443
74445
|
}
|
74444
|
-
if ((0, import_drizzle_orm10.is)(t2,
|
74446
|
+
if ((0, import_drizzle_orm10.is)(t2, import_relations2.Relations)) {
|
74445
74447
|
relations4[k] = t2;
|
74446
74448
|
}
|
74447
74449
|
});
|
@@ -74470,7 +74472,7 @@ var init_studio2 = __esm({
|
|
74470
74472
|
const schema6 = (0, import_mysql_core3.getTableConfig)(t2).schema || "public";
|
74471
74473
|
mysqlSchema3[schema6][k] = t2;
|
74472
74474
|
}
|
74473
|
-
if ((0, import_drizzle_orm10.is)(t2,
|
74475
|
+
if ((0, import_drizzle_orm10.is)(t2, import_relations2.Relations)) {
|
74474
74476
|
relations4[k] = t2;
|
74475
74477
|
}
|
74476
74478
|
});
|
@@ -74499,7 +74501,7 @@ var init_studio2 = __esm({
|
|
74499
74501
|
const schema6 = "public";
|
74500
74502
|
sqliteSchema2[schema6][k] = t2;
|
74501
74503
|
}
|
74502
|
-
if ((0, import_drizzle_orm10.is)(t2,
|
74504
|
+
if ((0, import_drizzle_orm10.is)(t2, import_relations2.Relations)) {
|
74503
74505
|
relations4[k] = t2;
|
74504
74506
|
}
|
74505
74507
|
});
|
@@ -74528,7 +74530,7 @@ var init_studio2 = __esm({
|
|
74528
74530
|
const schema6 = (0, import_singlestore_core3.getTableConfig)(t2).schema || "public";
|
74529
74531
|
singlestoreSchema3[schema6][k] = t2;
|
74530
74532
|
}
|
74531
|
-
if ((0, import_drizzle_orm10.is)(t2,
|
74533
|
+
if ((0, import_drizzle_orm10.is)(t2, import_relations2.Relations)) {
|
74532
74534
|
relations4[k] = t2;
|
74533
74535
|
}
|
74534
74536
|
});
|
@@ -74684,7 +74686,7 @@ var init_studio2 = __esm({
|
|
74684
74686
|
extractRelations = (tablesConfig) => {
|
74685
74687
|
const relations4 = Object.values(tablesConfig.tables).map(
|
74686
74688
|
(it) => Object.entries(it.relations).map(([name, relation]) => {
|
74687
|
-
const normalized = (0,
|
74689
|
+
const normalized = (0, import_relations2.normalizeRelation)(
|
74688
74690
|
tablesConfig.tables,
|
74689
74691
|
tablesConfig.tableNamesMap,
|
74690
74692
|
relation
|
@@ -74707,9 +74709,9 @@ var init_studio2 = __esm({
|
|
74707
74709
|
throw new Error("unsupported dialect");
|
74708
74710
|
}
|
74709
74711
|
let type;
|
74710
|
-
if ((0, import_drizzle_orm10.is)(rel,
|
74712
|
+
if ((0, import_drizzle_orm10.is)(rel, import_relations2.One)) {
|
74711
74713
|
type = "one";
|
74712
|
-
} else if ((0, import_drizzle_orm10.is)(rel,
|
74714
|
+
} else if ((0, import_drizzle_orm10.is)(rel, import_relations2.Many)) {
|
74713
74715
|
type = "many";
|
74714
74716
|
} else {
|
74715
74717
|
throw new Error("unsupported relation type");
|
@@ -74814,9 +74816,9 @@ var init_studio2 = __esm({
|
|
74814
74816
|
),
|
74815
74817
|
...relations4
|
74816
74818
|
};
|
74817
|
-
const relationsConfig = (0,
|
74819
|
+
const relationsConfig = (0, import_relations2.extractTablesRelationalConfig)(
|
74818
74820
|
relationalSchema,
|
74819
|
-
|
74821
|
+
import_relations2.createTableRelationsHelpers
|
74820
74822
|
);
|
74821
74823
|
app.post("/", zValidator("json", schema5), async (c) => {
|
74822
74824
|
const body = c.req.valid("json");
|
@@ -77382,7 +77384,7 @@ init_utils5();
|
|
77382
77384
|
var version2 = async () => {
|
77383
77385
|
const { npmVersion } = await ormCoreVersions();
|
77384
77386
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
77385
|
-
const envVersion = "0.30.
|
77387
|
+
const envVersion = "0.30.3-19ccabb";
|
77386
77388
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
77387
77389
|
const versions = `drizzle-kit: ${kitVersion}
|
77388
77390
|
${ormVersion}`;
|