-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple queries to be added together ( via a Monoid instance or similar? ) #793
Comments
thanks silky, i assume you mean in context of morpheus client? don't you? could you provide more detailed example? |
FYI: did you tried |
thanks @nalchevanidze yes, indeed i'm talking about the client I'm not sure here's my example. i have the following queries:
defining inserts into two tables:
i can construct an
then i can insert them independently like so:
this all works perfectly and is valid haskell. but, it's just as a valid to insert them both in one query:
i guess what i'm asking is if there is a way to always be able to combine two queries in this way, i.e. so i don't have to manually define i.e. yielding an ideal query of the form
having gone through the process of writing this all out, it feels to me that maybe this would be just not possible; but i'm not certain; and it would be extremely convenient :) hope this makes sense! |
( thanks for the work on this amazing library! I love it :) )
Suppose I have two insert queries:
then, I believe it's legal to combine this into a single query that inserts these both at once:
it'd be really neat if I could perform this combination in haskell from the two independent queries, by say combining the two args:
this isn't currently possible, right? would be extremely handy! :)
The text was updated successfully, but these errors were encountered: