We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd1b0b3 commit 1a2e7f3Copy full SHA for 1a2e7f3
scylla/src/statement/bound.rs
@@ -74,6 +74,14 @@ impl<'p> BoundStatement<'p> {
74
Ok(Some((partition_key, token)))
75
}
76
77
+ /// Consumes this bound statement to return one with no borrowed data
78
+ pub fn into_owned(self) -> BoundStatement<'static> {
79
+ BoundStatement {
80
+ prepared: Cow::Owned(self.prepared.into_owned()),
81
+ values: self.values,
82
+ }
83
84
+
85
/// Calculates the token for the prepared statement and its bound values
86
///
87
/// Returns the token that would be computed for executing the provided prepared statement with
0 commit comments