mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
b92c64af7d
Summary: shed/sql library used mainly to communicate with Mysql db and to have a nice abstraction layer around mysql (which is used in production) and sqlite (integration tests). The library provided an interface, that was backed up from Mysql side my raw connections and by MyRouter. This diff introduces a new backend - new Mysql client for Rust. New backend is exposed as a third variant for the current model: sqlite, mysql (raw conn and myrouter) and mysql2 (new client). The main reason for that is the fact that the current shed/sql interface for Mysql (1) heavily depends on mysql_async crate, (2) introduces much more complexity than needed for the new client and (3) it seems like this will be refactored and cleaned up later, old things will be deprecated. So to not overcomplicate things by trying to implement the given interface for the new Mysql client, I tried to simplify things by adding it as a third backend option. Reviewed By: farnz Differential Revision: D22458189 fbshipit-source-id: 4a484b5201a38cc017023c4086e9f57544de68b8 |
||
---|---|---|
.. | ||
schemas | ||
src | ||
Cargo.toml |