Skip to content

Implement ToStatement for String #794

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

Closed
flip111 opened this issue Jun 20, 2021 · 1 comment
Closed

Implement ToStatement for String #794

flip111 opened this issue Jun 20, 2021 · 1 comment

Comments

@flip111
Copy link

flip111 commented Jun 20, 2021

https://docs.rs/postgres/0.19.1/postgres/trait.ToStatement.html

could ToStatement be implemented for String? this makes it a bit easier to make dynamic queries and not have to use the to_str() function (& does not work). Prepared statements don't work for all types of queries, so putting strings together is still needed.

@sfackler
Copy link
Owner

Seems reasonable to me!

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

No branches or pull requests

2 participants