Skip to content

Commit 4fbc36b

Browse files
committed
expose creating BoundStatement from a PreparedStatement
1 parent c6576c4 commit 4fbc36b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scylla/src/statement/prepared.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,10 @@ impl PreparedStatement {
423423
self.config.execution_profile_handle.as_ref()
424424
}
425425

426-
pub(crate) fn bind(
427-
self,
428-
values: &impl SerializeRow,
429-
) -> Result<BoundStatement, SerializationError> {
426+
/// Binds values with a prepared statement
427+
///
428+
/// This method will serialize the values and thus type erase them on return
429+
pub fn bind(self, values: &impl SerializeRow) -> Result<BoundStatement, SerializationError> {
430430
BoundStatement::new(self, values)
431431
}
432432

0 commit comments

Comments
 (0)