-
Notifications
You must be signed in to change notification settings - Fork 57
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
Support Ecto.Adapters.MyXQL for MySQL #104
Comments
Hey there, I don't have any plans to implement it, but I'd be happy to include it in the repository if someone were to write it (and test it). |
For what it's worth, a colleague and I took a stab at it and it seems hard to do right now. Why? The library expects to be able to run an update and get the updated data back in one request (using the non-standard And that's where we gave up and moved on :-/ |
I haven't looked into it at all, but maybe you could do an update and a select within a single transaction to mimic the |
I haven't looked any closer, but we thought that the driver implementation only defines queries as strings and so it would be hard to run two queries in a transaction. For example, from the Postgresql driver:
I might be totally missing something, not an Ecto expert :) |
Honeydew certainly wants strings for queries, it's calling Ecto.Adapters.SQL.query/4. So you should be able to provide any kind of free-form SQL you like in there, including a transaction, unless I'm totally missing something. Happy to help give pointers if you guys want to take swing at it. :) |
🤦 I didn't realize you could just put multiple statements in that free-form SQL query including a transaction. Anyway, this was a week ago and since then we had to move on and so we wrote our own - very simplified - job queue. I don't think we'll have the time to develop this driver :-/ But I can ask my colleague to share our WiP. |
Hello.
I was playing with great feature Ecto Poll Queue. At some point, I notice that you are not supporting the MySQL database.
Are there any plans for that?
Thanks
The text was updated successfully, but these errors were encountered: