Skip to content

Commit 4e80d8e

Browse files
committed
expose creating BoundStatement from a PreparedStatement
1 parent 0b3f71b commit 4e80d8e

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
@@ -447,10 +447,10 @@ impl PreparedStatement {
447447
self.config.execution_profile_handle.as_ref()
448448
}
449449

450-
pub(crate) fn bind(
451-
self,
452-
values: &impl SerializeRow,
453-
) -> Result<BoundStatement, SerializationError> {
450+
/// Binds values with a prepared statement
451+
///
452+
/// This method will serialize the values and thus type erase them on return
453+
pub fn bind(self, values: &impl SerializeRow) -> Result<BoundStatement, SerializationError> {
454454
BoundStatement::new(self, values)
455455
}
456456

0 commit comments

Comments
 (0)