You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are situations where would be useful to build the mapper automatically, for example, if we need to dynamically add a where condition we could use query! or any other case where the fields won't change and then pass the Map structure to another function that would be able to modify the SQL inside.
Looking into the code that could either make it work by providing another SQL to the Map or by allowing "extracting" the mapper and building another Map with try_map.
Just being able to build and pass a "mapper" around would help and will minimize user code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
There are situations where would be useful to build the mapper automatically, for example, if we need to dynamically add a where condition we could use
query!
or any other case where the fields won't change and then pass theMap
structure to another function that would be able to modify the SQL inside.Looking into the code that could either make it work by providing another SQL to the
Map
or by allowing "extracting" the mapper and building anotherMap
withtry_map
.Just being able to build and pass a "mapper" around would help and will minimize user code.
Not sure what are the implications but
could change to
Beta Was this translation helpful? Give feedback.
All reactions