Skip to content

sqlx-core: impl IntoArguments for Arguments #3833

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hxzhao527
Copy link

@hxzhao527 hxzhao527 commented Apr 20, 2025

Does your PR solve an issue?

fixes #3834

Is this a breaking change?

struct which impl both Arguments and IntoArguments will conflict now.

@hxzhao527 hxzhao527 changed the title WIP: impl IntoArguments for Arguments WIP: sqlx-core: impl IntoArguments for Arguments Apr 20, 2025
@hxzhao527 hxzhao527 changed the title WIP: sqlx-core: impl IntoArguments for Arguments sqlx-core: impl IntoArguments for Arguments Apr 20, 2025
@hxzhao527 hxzhao527 changed the title sqlx-core: impl IntoArguments for Arguments WIP: sqlx-core: impl IntoArguments for Arguments Apr 21, 2025
@hxzhao527 hxzhao527 changed the title WIP: sqlx-core: impl IntoArguments for Arguments sqlx-core: impl IntoArguments for Arguments Apr 24, 2025
Comment on lines +40 to +49
// impl<'q>
// $crate::arguments::IntoArguments<
// 'q,
// <$Arguments as $crate::arguments::Arguments<'q>>::Database,
// > for $Arguments
// {
// fn into_arguments(self) -> $Arguments {
// self
// }
// }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this macro is obsoleted by this PR then it should just be deleted.

[[test]]
name = "generic-postgres"
path = "tests/generic/postgres.rs"
required-features = ["postgres", "macros"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing newline at the end of this file.

.try_map(|row: <E::Database as Database>::Row| row.try_get::<i32, _>(0))
.fetch_one(e)
.await
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not immediately obvious how this test relates to the purpose of this PR. Can you add a comment explaining that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

impl IntoArguments for Arguments
2 participants