@dudousxd/nestjs-durable-store-mikro-orm 0.35.0 → 0.35.1
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/dist/index.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2818,13 +2818,16 @@ var MikroOrmRoundTrips = class MikroOrmRoundTrips2 {
|
|
|
2818
2818
|
table(em, entity) {
|
|
2819
2819
|
return this.q(em, this.meta(em, entity).tableName);
|
|
2820
2820
|
}
|
|
2821
|
-
/**
|
|
2821
|
+
/**
|
|
2822
|
+
* `value` as a raw-SQL parameter for `property` (its custom type's conversion, if any).
|
|
2823
|
+
*
|
|
2824
|
+
* No `mode: 'query'`: in that mode MySQL's JSON conversion returns the value unserialized, for the
|
|
2825
|
+
* query builder to handle, and a raw parameter that is an array is then expanded into a value list.
|
|
2826
|
+
*/
|
|
2822
2827
|
bind(em, entity, property, value) {
|
|
2823
2828
|
if (value == null) return null;
|
|
2824
2829
|
const type = this.meta(em, entity).properties[property]?.customType;
|
|
2825
|
-
return type ? type.convertToDatabaseValue(value, em.getPlatform()
|
|
2826
|
-
mode: "query"
|
|
2827
|
-
}) : value;
|
|
2830
|
+
return type ? type.convertToDatabaseValue(value, em.getPlatform()) : value;
|
|
2828
2831
|
}
|
|
2829
2832
|
async run(em, sql, params, method = "all") {
|
|
2830
2833
|
const connection = em.getConnection();
|