drizzle-kit 0.30.1-db33c87 → 0.30.1-e6823b4
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 +2739 -1885
- package/api.mjs +2739 -1885
- package/bin.cjs +52 -50
- package/package.json +1 -1
package/bin.cjs
CHANGED
@@ -54371,7 +54371,7 @@ var init_utils5 = __esm({
|
|
54371
54371
|
assertOrmCoreVersion = async () => {
|
54372
54372
|
try {
|
54373
54373
|
const { compatibilityVersion } = await import("drizzle-orm/version");
|
54374
|
-
await import("drizzle-orm/
|
54374
|
+
await import("drizzle-orm/_relations");
|
54375
54375
|
if (compatibilityVersion && compatibilityVersion === requiredApiVersion) {
|
54376
54376
|
return;
|
54377
54377
|
}
|
@@ -73106,9 +73106,9 @@ var require_dist_cjs46 = __commonJS({
|
|
73106
73106
|
}
|
73107
73107
|
});
|
73108
73108
|
|
73109
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js
|
73109
|
+
// ../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
|
73110
73110
|
var require_httpAuthSchemeProvider3 = __commonJS({
|
73111
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
73111
|
+
"../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) {
|
73112
73112
|
"use strict";
|
73113
73113
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
73114
73114
|
exports2.resolveHttpAuthSchemeConfig = exports2.defaultSSOOIDCHttpAuthSchemeProvider = exports2.defaultSSOOIDCHttpAuthSchemeParametersProvider = void 0;
|
@@ -73175,9 +73175,9 @@ var require_httpAuthSchemeProvider3 = __commonJS({
|
|
73175
73175
|
}
|
73176
73176
|
});
|
73177
73177
|
|
73178
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json
|
73178
|
+
// ../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
|
73179
73179
|
var require_package4 = __commonJS({
|
73180
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/package.json"(exports2, module2) {
|
73180
|
+
"../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) {
|
73181
73181
|
module2.exports = {
|
73182
73182
|
name: "@aws-sdk/client-sso-oidc",
|
73183
73183
|
description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
@@ -73281,9 +73281,9 @@ var require_package4 = __commonJS({
|
|
73281
73281
|
}
|
73282
73282
|
});
|
73283
73283
|
|
73284
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js
|
73284
|
+
// ../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
|
73285
73285
|
var require_ruleset2 = __commonJS({
|
73286
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/ruleset.js"(exports2) {
|
73286
|
+
"../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) {
|
73287
73287
|
"use strict";
|
73288
73288
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
73289
73289
|
exports2.ruleSet = void 0;
|
@@ -73316,9 +73316,9 @@ var require_ruleset2 = __commonJS({
|
|
73316
73316
|
}
|
73317
73317
|
});
|
73318
73318
|
|
73319
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js
|
73319
|
+
// ../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
|
73320
73320
|
var require_endpointResolver2 = __commonJS({
|
73321
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
73321
|
+
"../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) {
|
73322
73322
|
"use strict";
|
73323
73323
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
73324
73324
|
exports2.defaultEndpointResolver = void 0;
|
@@ -73336,9 +73336,9 @@ var require_endpointResolver2 = __commonJS({
|
|
73336
73336
|
}
|
73337
73337
|
});
|
73338
73338
|
|
73339
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js
|
73339
|
+
// ../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
|
73340
73340
|
var require_runtimeConfig_shared2 = __commonJS({
|
73341
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
73341
|
+
"../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) {
|
73342
73342
|
"use strict";
|
73343
73343
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
73344
73344
|
exports2.getRuntimeConfig = void 0;
|
@@ -73382,9 +73382,9 @@ var require_runtimeConfig_shared2 = __commonJS({
|
|
73382
73382
|
}
|
73383
73383
|
});
|
73384
73384
|
|
73385
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js
|
73385
|
+
// ../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
|
73386
73386
|
var require_runtimeConfig2 = __commonJS({
|
73387
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js"(exports2) {
|
73387
|
+
"../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) {
|
73388
73388
|
"use strict";
|
73389
73389
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
73390
73390
|
exports2.getRuntimeConfig = void 0;
|
@@ -73435,9 +73435,9 @@ var require_runtimeConfig2 = __commonJS({
|
|
73435
73435
|
}
|
73436
73436
|
});
|
73437
73437
|
|
73438
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js
|
73438
|
+
// ../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
|
73439
73439
|
var require_dist_cjs47 = __commonJS({
|
73440
|
-
"../node_modules/.pnpm/@aws-sdk+client-sso-oidc@3.583.0/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js"(exports2, module2) {
|
73440
|
+
"../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) {
|
73441
73441
|
"use strict";
|
73442
73442
|
var __defProp3 = Object.defineProperty;
|
73443
73443
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
@@ -74783,9 +74783,9 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
74783
74783
|
}
|
74784
74784
|
});
|
74785
74785
|
|
74786
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
74786
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js
|
74787
74787
|
var require_httpAuthSchemeProvider4 = __commonJS({
|
74788
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
74788
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js"(exports2) {
|
74789
74789
|
"use strict";
|
74790
74790
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
74791
74791
|
exports2.resolveHttpAuthSchemeConfig = exports2.resolveStsAuthConfig = exports2.defaultSTSHttpAuthSchemeProvider = exports2.defaultSTSHttpAuthSchemeParametersProvider = void 0;
|
@@ -74855,9 +74855,9 @@ var require_httpAuthSchemeProvider4 = __commonJS({
|
|
74855
74855
|
}
|
74856
74856
|
});
|
74857
74857
|
|
74858
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
74858
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js
|
74859
74859
|
var require_EndpointParameters = __commonJS({
|
74860
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
74860
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js"(exports2) {
|
74861
74861
|
"use strict";
|
74862
74862
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
74863
74863
|
exports2.commonParams = exports2.resolveClientEndpointParameters = void 0;
|
@@ -74881,9 +74881,9 @@ var require_EndpointParameters = __commonJS({
|
|
74881
74881
|
}
|
74882
74882
|
});
|
74883
74883
|
|
74884
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
74884
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/package.json
|
74885
74885
|
var require_package5 = __commonJS({
|
74886
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
74886
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/package.json"(exports2, module2) {
|
74887
74887
|
module2.exports = {
|
74888
74888
|
name: "@aws-sdk/client-sts",
|
74889
74889
|
description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
@@ -74989,9 +74989,9 @@ var require_package5 = __commonJS({
|
|
74989
74989
|
}
|
74990
74990
|
});
|
74991
74991
|
|
74992
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
74992
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js
|
74993
74993
|
var require_ruleset3 = __commonJS({
|
74994
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
74994
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js"(exports2) {
|
74995
74995
|
"use strict";
|
74996
74996
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
74997
74997
|
exports2.ruleSet = void 0;
|
@@ -75036,9 +75036,9 @@ var require_ruleset3 = __commonJS({
|
|
75036
75036
|
}
|
75037
75037
|
});
|
75038
75038
|
|
75039
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75039
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js
|
75040
75040
|
var require_endpointResolver3 = __commonJS({
|
75041
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75041
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js"(exports2) {
|
75042
75042
|
"use strict";
|
75043
75043
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
75044
75044
|
exports2.defaultEndpointResolver = void 0;
|
@@ -75056,9 +75056,9 @@ var require_endpointResolver3 = __commonJS({
|
|
75056
75056
|
}
|
75057
75057
|
});
|
75058
75058
|
|
75059
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75059
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js
|
75060
75060
|
var require_runtimeConfig_shared3 = __commonJS({
|
75061
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75061
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js"(exports2) {
|
75062
75062
|
"use strict";
|
75063
75063
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
75064
75064
|
exports2.getRuntimeConfig = void 0;
|
@@ -75102,9 +75102,9 @@ var require_runtimeConfig_shared3 = __commonJS({
|
|
75102
75102
|
}
|
75103
75103
|
});
|
75104
75104
|
|
75105
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75105
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js
|
75106
75106
|
var require_runtimeConfig3 = __commonJS({
|
75107
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75107
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js"(exports2) {
|
75108
75108
|
"use strict";
|
75109
75109
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
75110
75110
|
exports2.getRuntimeConfig = void 0;
|
@@ -75168,9 +75168,9 @@ var require_runtimeConfig3 = __commonJS({
|
|
75168
75168
|
}
|
75169
75169
|
});
|
75170
75170
|
|
75171
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75171
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js
|
75172
75172
|
var require_httpAuthExtensionConfiguration = __commonJS({
|
75173
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75173
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthExtensionConfiguration.js"(exports2) {
|
75174
75174
|
"use strict";
|
75175
75175
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
75176
75176
|
exports2.resolveHttpAuthRuntimeConfig = exports2.getHttpAuthExtensionConfiguration = void 0;
|
@@ -75216,9 +75216,9 @@ var require_httpAuthExtensionConfiguration = __commonJS({
|
|
75216
75216
|
}
|
75217
75217
|
});
|
75218
75218
|
|
75219
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75219
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js
|
75220
75220
|
var require_runtimeExtensions = __commonJS({
|
75221
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75221
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js"(exports2) {
|
75222
75222
|
"use strict";
|
75223
75223
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
75224
75224
|
exports2.resolveRuntimeExtensions = void 0;
|
@@ -75247,9 +75247,9 @@ var require_runtimeExtensions = __commonJS({
|
|
75247
75247
|
}
|
75248
75248
|
});
|
75249
75249
|
|
75250
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75250
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js
|
75251
75251
|
var require_STSClient = __commonJS({
|
75252
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75252
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js"(exports2) {
|
75253
75253
|
"use strict";
|
75254
75254
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
75255
75255
|
exports2.STSClient = exports2.__Client = void 0;
|
@@ -75311,9 +75311,9 @@ var require_STSClient = __commonJS({
|
|
75311
75311
|
}
|
75312
75312
|
});
|
75313
75313
|
|
75314
|
-
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75314
|
+
// ../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js
|
75315
75315
|
var require_dist_cjs50 = __commonJS({
|
75316
|
-
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.
|
75316
|
+
"../node_modules/.pnpm/@aws-sdk+client-sts@3.583.0/node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2, module2) {
|
75317
75317
|
"use strict";
|
75318
75318
|
var __defProp3 = Object.defineProperty;
|
75319
75319
|
var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
|
@@ -78653,6 +78653,7 @@ var init_connections = __esm({
|
|
78653
78653
|
rdsClient,
|
78654
78654
|
new PgDialect2(),
|
78655
78655
|
void 0,
|
78656
|
+
void 0,
|
78656
78657
|
config,
|
78657
78658
|
void 0
|
78658
78659
|
);
|
@@ -83469,7 +83470,7 @@ var init_introspect_pg = __esm({
|
|
83469
83470
|
"src/introspect-pg.ts"() {
|
83470
83471
|
"use strict";
|
83471
83472
|
import_drizzle_orm9 = require("drizzle-orm");
|
83472
|
-
import_relations = require("drizzle-orm/
|
83473
|
+
import_relations = require("drizzle-orm/_relations");
|
83473
83474
|
init_utils();
|
83474
83475
|
import_casing4 = require("drizzle-orm/casing");
|
83475
83476
|
init_global();
|
@@ -85313,7 +85314,7 @@ var init_introspect = __esm({
|
|
85313
85314
|
});
|
85314
85315
|
});
|
85315
85316
|
const uniqueImports = [...new Set(imports)];
|
85316
|
-
const importsTs = `import { relations } from "drizzle-orm/
|
85317
|
+
const importsTs = `import { relations } from "drizzle-orm/_relations";
|
85317
85318
|
import { ${uniqueImports.join(
|
85318
85319
|
", "
|
85319
85320
|
)} } from "./schema";
|
@@ -88679,7 +88680,7 @@ __export(studio_exports, {
|
|
88679
88680
|
prepareServer: () => prepareServer,
|
88680
88681
|
prepareSingleStoreSchema: () => prepareSingleStoreSchema
|
88681
88682
|
});
|
88682
|
-
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;
|
88683
|
+
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;
|
88683
88684
|
var init_studio2 = __esm({
|
88684
88685
|
"src/serializer/studio.ts"() {
|
88685
88686
|
"use strict";
|
@@ -88687,6 +88688,7 @@ var init_studio2 = __esm({
|
|
88687
88688
|
init_esm();
|
88688
88689
|
import_crypto9 = require("crypto");
|
88689
88690
|
import_drizzle_orm10 = require("drizzle-orm");
|
88691
|
+
import_relations2 = require("drizzle-orm/_relations");
|
88690
88692
|
import_mysql_core3 = require("drizzle-orm/mysql-core");
|
88691
88693
|
import_pg_core3 = require("drizzle-orm/pg-core");
|
88692
88694
|
import_singlestore_core3 = require("drizzle-orm/singlestore-core");
|
@@ -88721,7 +88723,7 @@ var init_studio2 = __esm({
|
|
88721
88723
|
pgSchema2[schema6] = pgSchema2[schema6] || {};
|
88722
88724
|
pgSchema2[schema6][k] = t2;
|
88723
88725
|
}
|
88724
|
-
if ((0, import_drizzle_orm10.is)(t2,
|
88726
|
+
if ((0, import_drizzle_orm10.is)(t2, import_relations2.Relations)) {
|
88725
88727
|
relations4[k] = t2;
|
88726
88728
|
}
|
88727
88729
|
});
|
@@ -88750,7 +88752,7 @@ var init_studio2 = __esm({
|
|
88750
88752
|
const schema6 = (0, import_mysql_core3.getTableConfig)(t2).schema || "public";
|
88751
88753
|
mysqlSchema3[schema6][k] = t2;
|
88752
88754
|
}
|
88753
|
-
if ((0, import_drizzle_orm10.is)(t2,
|
88755
|
+
if ((0, import_drizzle_orm10.is)(t2, import_relations2.Relations)) {
|
88754
88756
|
relations4[k] = t2;
|
88755
88757
|
}
|
88756
88758
|
});
|
@@ -88779,7 +88781,7 @@ var init_studio2 = __esm({
|
|
88779
88781
|
const schema6 = "public";
|
88780
88782
|
sqliteSchema2[schema6][k] = t2;
|
88781
88783
|
}
|
88782
|
-
if ((0, import_drizzle_orm10.is)(t2,
|
88784
|
+
if ((0, import_drizzle_orm10.is)(t2, import_relations2.Relations)) {
|
88783
88785
|
relations4[k] = t2;
|
88784
88786
|
}
|
88785
88787
|
});
|
@@ -88808,7 +88810,7 @@ var init_studio2 = __esm({
|
|
88808
88810
|
const schema6 = (0, import_singlestore_core3.getTableConfig)(t2).schema || "public";
|
88809
88811
|
singlestoreSchema3[schema6][k] = t2;
|
88810
88812
|
}
|
88811
|
-
if ((0, import_drizzle_orm10.is)(t2,
|
88813
|
+
if ((0, import_drizzle_orm10.is)(t2, import_relations2.Relations)) {
|
88812
88814
|
relations4[k] = t2;
|
88813
88815
|
}
|
88814
88816
|
});
|
@@ -88964,7 +88966,7 @@ var init_studio2 = __esm({
|
|
88964
88966
|
extractRelations = (tablesConfig) => {
|
88965
88967
|
const relations4 = Object.values(tablesConfig.tables).map(
|
88966
88968
|
(it) => Object.entries(it.relations).map(([name, relation]) => {
|
88967
|
-
const normalized = (0,
|
88969
|
+
const normalized = (0, import_relations2.normalizeRelation)(
|
88968
88970
|
tablesConfig.tables,
|
88969
88971
|
tablesConfig.tableNamesMap,
|
88970
88972
|
relation
|
@@ -88987,9 +88989,9 @@ var init_studio2 = __esm({
|
|
88987
88989
|
throw new Error("unsupported dialect");
|
88988
88990
|
}
|
88989
88991
|
let type;
|
88990
|
-
if ((0, import_drizzle_orm10.is)(rel,
|
88992
|
+
if ((0, import_drizzle_orm10.is)(rel, import_relations2.One)) {
|
88991
88993
|
type = "one";
|
88992
|
-
} else if ((0, import_drizzle_orm10.is)(rel,
|
88994
|
+
} else if ((0, import_drizzle_orm10.is)(rel, import_relations2.Many)) {
|
88993
88995
|
type = "many";
|
88994
88996
|
} else {
|
88995
88997
|
throw new Error("unsupported relation type");
|
@@ -89094,9 +89096,9 @@ var init_studio2 = __esm({
|
|
89094
89096
|
),
|
89095
89097
|
...relations4
|
89096
89098
|
};
|
89097
|
-
const relationsConfig = (0,
|
89099
|
+
const relationsConfig = (0, import_relations2.extractTablesRelationalConfig)(
|
89098
89100
|
relationalSchema,
|
89099
|
-
|
89101
|
+
import_relations2.createTableRelationsHelpers
|
89100
89102
|
);
|
89101
89103
|
app.post("/", zValidator("json", schema5), async (c) => {
|
89102
89104
|
const body = c.req.valid("json");
|
@@ -92609,7 +92611,7 @@ init_utils5();
|
|
92609
92611
|
var version2 = async () => {
|
92610
92612
|
const { npmVersion } = await ormCoreVersions();
|
92611
92613
|
const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
|
92612
|
-
const envVersion = "0.30.1-
|
92614
|
+
const envVersion = "0.30.1-e6823b4";
|
92613
92615
|
const kitVersion = envVersion ? `v${envVersion}` : "--";
|
92614
92616
|
const versions = `drizzle-kit: ${kitVersion}
|
92615
92617
|
${ormVersion}`;
|