mit-pdos / noria

Fast web applications through dynamic, partially-stateful dataflow
Apache License 2.0
4.97k stars 241 forks source link

Added a conversion trait from mysql::Value to noria::DataType #157

Closed jonathanGB closed 4 years ago

jonathanGB commented 4 years ago

We need a conversion from mysql::Value to noria::DataType for write-policies in MultiverseDB, as insertions by the client must be applied to MySQL first, then sent to Noria.

I added an implementation of TryFrom for noria::DataType in my own fork, but we might as well have it in the master branch?

jonhoo commented 4 years ago

Seems like a good idea to me! I left some comments inline.