r2d2 icon indicating copy to clipboard operation
r2d2 copied to clipboard

Can I use it on cassandra?

Open pili2026 opened this issue 6 years ago • 3 comments

Because I did not see information about cassandra on the list, so if i want to build like Sql, is there a related way?

pili2026 avatar May 27 '19 07:05 pili2026

This crate's readme mentions r2d2: https://github.com/AlexPikalov/cdrs

sfackler avatar May 27 '19 14:05 sfackler

Because I use cassandra-sys-rs and build an executable program. But the connection was too time-consuming to build, so I wondered if I could use it in casandra-sys-rs?

pili2026 avatar May 28 '19 02:05 pili2026

Sure, if you make a type that implements this trait: https://docs.rs/r2d2/0.8.4/r2d2/trait.ManageConnection.html

sfackler avatar May 28 '19 03:05 sfackler