Skip to content

Commit a3af3d6

Browse files
committed
Deprecate QueryPager::type_check
1 parent 56033d1 commit a3af3d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scylla/src/client/pager.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,12 @@ impl QueryPager {
695695
/// This is automatically called upon transforming [QueryPager] into [TypedRowStream].
696696
// Can be used with `next()` for manual deserialization.
697697
#[inline]
698+
#[deprecated(
699+
since = "1.4.0",
700+
note = "Type check should be performed for each page, which is not possible with public API.
701+
Also, the only thing user can do (rows_stream) will take care of type check anyway.
702+
If you are using this API, you are probably doing something wrong."
703+
)]
698704
pub fn type_check<'frame, 'metadata, RowT: DeserializeRow<'frame, 'metadata>>(
699705
&self,
700706
) -> Result<(), TypeCheckError> {

0 commit comments

Comments
 (0)