eaze / tide-sqlx

Tide middleware for SQLx pooled connections & transactions
https://crates.io/crates/tide-sqlx
Other
40 stars 9 forks source link

feat: be generic, support any SQLx database #4

Closed Fishrock123 closed 3 years ago

Fishrock123 commented 3 years ago

This changes a lot of this crate to be generic over sqlx::Database, and also changes the naming of everything to be "SQLx*".

Additionally, this now has a greatly simplified ConnectionWrapInner implementation via Deref and DerefMut! Thanks to @mehcode for that!


Future improvements, either in this PR or in follow-ups include:


note to self: still need to remove the "postgres" and "any" features by default, only include in test runs