Replies: 2 comments 1 reply
-
As this is a feature request: Could you add answers to the following questions from our contribution guidelines?
Additionally for this request it may be important to elaborate the following points:
|
Beta Was this translation helpful? Give feedback.
-
I don't need it, since I am just experimenting with diesel by trying out foot guns I faced in gorm. I am thinking this may be easier for others that wanted to easily get started with diesel since using pure rust does not require any libraries.
Like a feature
sqlx is a possible alternative to diesel but both have very different design decisions, of course current mysql works fine and well, but cross-platform wise I think using pure rust backend will make things easier, not more performant though and may result in more complexity.
Yes, complexity wise, in increases more burden on maintainer to keep up to date with both libmysqlclient and rust mysql crate, and issues within rust mysql crate may propagate to diesel. Performance wise, if rust mysql is able to perform as well as mysql I don't think it is an issue but I haven't looked much into that crate, but that crate provides a pool connection, not sure how well it integrates with r2d2 and deadpool and such.
I didn't know this could be implemented as a third party crate, probably possible.
I am not sure if the performance difference is caused by sqlx or mysql backend, it could be that it is caused by sqlx and not mysql backend. But as always, I am not suggesting to swap out libmysqlclient but rather provide another backend for mysql using pure rust. Since our mysql stuff is in place, it will probably not be as much work as adding a different database. |
Beta Was this translation helpful? Give feedback.
-
Maybe it would be good to have a pure rust mysql client? sqlx already have it. https://docs.rs/mysql/20.1.0/mysql/index.html
Beta Was this translation helpful? Give feedback.
All reactions