sqlx
sqlx copied to clipboard
Generic Associated Types in Database, replacing HasValueRef, HasArguments, HasStatement
replaces the associated types from the generic traits HasValueRef<'r>, HasArguments<'q> and HasStatement<'q> with generic associated types in Database, as described in the (now removed) comment:
The upcoming Rust feature, [Generic Associated Types], should obviate the need for this trait.
This is obviously a breaking change. GATs have been stable since Rust 1.65
This is a refactor I've been dreading having to do, I really appreciate it.
@nitn3lav can you rebase and fix the conflict? We're ready to merge breaking changes now.