-
Notifications
You must be signed in to change notification settings - Fork 1.5k
refactor(any): Remove lifetime parameter from AnyArguments #3958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4b8535d
to
babd18d
Compare
58b46a2
to
3217e7e
Compare
b1320b0
to
c8c85e7
Compare
a327b23
to
58fdeca
Compare
Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
58fdeca
to
255ea48
Compare
Just as a note: (There are pro's and con's ofcourse, it'd save a copy here and here but all |
One of the design choices of the crate is for the That works with the postgres flavor in sqlx 0.8 because its implementation of When a driver's Lines 75 to 86 in bab1b02
So the opposite is actually the case for named parameter support - to preserve |
Does your PR solve an issue?
Similar to #3957, allows more flexibility with passing references as bind parameters to
query!
macros when using theAny
driver.This is the first of two prs, after which
Query::bind
andQuery::try_bind
argument lifetimes will be relaxed to be consistent across the drivers. The second pr adds a test which is a compile-time check of the new lifetime allowances for arguments. That test will not compile with just this pr.Second of the two prs:
#3960
Is this a breaking change?
Yes:
Any
driverAnyValueKind