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 c50545b commit 2e5086aCopy full SHA for 2e5086a
scylla/src/statement/bound.rs
@@ -76,6 +76,14 @@ impl<'p> BoundStatement<'p> {
76
Ok(Some((partition_key, token)))
77
}
78
79
+ /// Consumes this bound statement to return one with no borrowed data
80
+ pub fn into_owned(self) -> BoundStatement<'static> {
81
+ BoundStatement {
82
+ prepared: Cow::Owned(self.prepared.into_owned()),
83
+ values: self.values,
84
+ }
85
86
+
87
/// Calculates the token for the prepared statement and its bound values
88
///
89
/// Returns the token that would be computed for executing the provided prepared statement with
0 commit comments