Skip to content

Conversation

@abonander
Copy link
Collaborator

@abonander abonander commented Jul 22, 2024

This will allow owned Strings (among other types) to be passed to query() and friends without lifetime issues.

The existing requirement of a borrowed string is meant to discourage adding dynamic data to a query with format!(), but that's very non-obvious and also precludes many useful patterns.

closes #1594

@abonander
Copy link
Collaborator Author

merged as #3723

@abonander abonander closed this Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: Improvements to sqlx::query() for Query Builders, and Explicit Injection Safety

2 participants