Skip to content
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

add args to query builder (#2494) #2506

Merged
merged 4 commits into from Jun 30, 2023

Conversation

cemoktra
Copy link
Contributor

Fixing #2494

Allow to keep existing args when creating a query builder

@cemoktra
Copy link
Contributor Author

@abonander feedback appreciated

sqlx-core/src/query_builder.rs Outdated Show resolved Hide resolved
Bastian Schubert and others added 4 commits June 23, 2023 08:20
@abonander abonander merged commit c2e54ea into launchbadge:main Jun 30, 2023
53 checks passed
.build();

let mut qb: QueryBuilder<'_, Postgres> =
QueryBuilder::new_with(query.sql(), query.take_arguments());
Copy link
Collaborator

Choose a reason for hiding this comment

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

This test isn't actually running because sqlx-core doesn't have a postgres feature anymore.

I'll have to migrate this to be an integration test or something.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, is this a blocker?

@cemoktra cemoktra deleted the query-builder-with-args branch July 4, 2023 08:11
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.

None yet

2 participants