Skip to content

Commit 8bb5712

Browse files
committed
Implement ToStatement for String
Closes #794
1 parent da6e2b1 commit 8bb5712

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tokio-postgres/src/to_statement.rs

+8
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,11 @@ impl ToStatement for str {
4747
}
4848

4949
impl Sealed for str {}
50+
51+
impl ToStatement for String {
52+
fn __convert(&self) -> ToStatementType<'_> {
53+
ToStatementType::Query(self)
54+
}
55+
}
56+
57+
impl Sealed for String {}

0 commit comments

Comments
 (0)