@m1212e/rumble 0.12.5 → 0.12.7
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/out/index.cjs +2 -2
- package/out/index.cjs.map +1 -1
- package/out/index.js +2 -2
- package/out/index.js.map +1 -1
- package/package.json +2 -1
package/out/index.cjs
CHANGED
|
@@ -1224,7 +1224,7 @@ function buildPothosResponseTypeFromGraphQLType({ builder, sqlType, fieldName, n
|
|
|
1224
1224
|
//#region lib/helpers/determineDialectFromSchema.ts
|
|
1225
1225
|
function determineDBDialectFromSchema(schema) {
|
|
1226
1226
|
const found = /* @__PURE__ */ new Set();
|
|
1227
|
-
for (const table of Object.values(schema)) {
|
|
1227
|
+
for (const table of Object.values(schema).map((t) => t.table)) {
|
|
1228
1228
|
if (typeof table !== "object") continue;
|
|
1229
1229
|
if (table instanceof drizzle_orm_pg_core.PgTable) found.add("postgres");
|
|
1230
1230
|
else if (table instanceof drizzle_orm_mysql_core.MySqlTable) found.add("mysql");
|
|
@@ -1236,7 +1236,7 @@ function determineDBDialectFromSchema(schema) {
|
|
|
1236
1236
|
throw new Error(`Multiple dialects found in schema: ${dialects.join(", ")}`);
|
|
1237
1237
|
}
|
|
1238
1238
|
function isPostgresDB(db) {
|
|
1239
|
-
return determineDBDialectFromSchema(db._.
|
|
1239
|
+
return determineDBDialectFromSchema(db._.relations) === "postgres";
|
|
1240
1240
|
}
|
|
1241
1241
|
|
|
1242
1242
|
//#endregion
|