-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add a distinced Backend for MariaDb #1882
Comments
In the long term we want to add a distinct If anyone is willing working on this feel free to claim that issue or drop a message on gitter. (Changed the title of the issue to make more clear that we want to add a distinct backend.) |
Spoke with weiznich on gitter and I'll be working on this one |
@virome are you still working on this? I might want to do something similar to support TiDB and would like to see how you refactor things. |
@ian-p-cooke Unfortunately, I ended up not having much time to work on this. If no one else wants to take it, I still would like to finish it at some point. |
I used a workaround to build diesel with mariadb |
Is this still available? I'd be interested to give it a go |
@saresend This is still an open issue, so feel free to work on this. Be warned that this requires likely a complex large change to diesel itself. |
Yeah that's fine, just want to double check you'd be willing to help answer questions / support this work |
@tgross35 Let's move the discussion about a custom mariadb backend here:
It's hard to tell what's the exact minimum PR for something like that, because as already written: We do not even have a specific design for that in mind. Keep that in mind for anything else that follows. I would prefer something that does not duplicate that much code, as that all is code that needs to be maintained. I would guess that there is no need to duplicate all of
All of that is quite a bit of work, so don't expect any fast changes there. Additionally we would need some testing strategy. We likely cannot afford testing another backend with the current setup. |
Posted a Stack Overflow question about Rust and MariaDB today. Anyone interested in developing this "backend for MariaDB" at the current time? In comments to one of the answers there, weiznich makes a suggestion that in its current condition Diesel is compatible with MariaDB: "mysqlclient-sys does totally support linking to libmariadb". But if so, please can you provide a simpleton's section in your "getting started" guide which covers how to do this? In particular, if it involves installing MySQL on my system (W10), I am pretty apprehensive that a default MySQL install operation will result in carnage and mess up my MariaDB installation. So it would be important only to install those MySQL elements which are really necessary, in isolation. But there are other things: setting up the appropriate environment variables, etc. Also the syntax of MariaDB has now drifted away significantly from MySQL, which is likely to cause problems. None of this is obvious. Other significant factor: my OS is W10. Issue 3964 of March 2024 (detailing some degree of compatibility) is concerned exclusively with *nix. Isn't MariaDB big enough now to deserve a worthy coverage... ? |
@Mrodent As our issue tracker is a place to track issues and not a place to provide support I will answer only the part of your question that is actually related to the development of diesel. For anything else (especially anything that is related to your "setup problems") please use our support channels (or just refer to the answers already given in other places.)
We are still open to accept contributions here. Otherwise this is nothing that I plan to spend time on implementing it on my own in the next time as I personally do neither use mysql (nor mariadb). So this is something that needs to be implemented by an interested contributor.
It's not about the size of the database community, but rather about if people that use these database are interested in putting in the work to implement it. Please don't expect me to put in that work for something I won't use instead of fixing bugs in things I actually use or implement new features I actually need. To summarize this all: Your contributions implementing this backend are welcome, but don't expect us to provide it on our own just because you've asked. |
@weiznich Thanks for your explanations about the way to proceed with this. I'm using the ODBC workaround for the moment. But when I have a bit more time I'll try to see how far I can get with Diesel + MariaDB + W10. If I have any success I'll report back with any findings, for anyone similarly facing this situation. |
FYI: Related sgrif/mysqlclient-sys#47 by @robertsilen was closed via sgrif/mysqlclient-sys#49 but neither https://github.com/sgrif/mysqlclient-sys/blob/master/README.md nor https://github.com/diesel-rs/diesel/blob/master/README.md still has no mention of MariaDB. |
@ottok We are happy to accept a PR that makes it more clear that you can also use libmariadb with the mysqlclient-sys. |
Just wondering if diesel supports MariaDB.
The text was updated successfully, but these errors were encountered: