diff --git a/examples/value_list.rs b/examples/value_list.rs index 81568baeef..9d4377aad2 100644 --- a/examples/value_list.rs +++ b/examples/value_list.rs @@ -1,5 +1,5 @@ use anyhow::Result; -use scylla::{Session, SessionBuilder}; +use scylla::{transport::PagingState, Session, SessionBuilder}; use std::env; #[tokio::main] @@ -56,11 +56,15 @@ async fn main() -> Result<()> { ) .await?; - let q = session - .query_unpaged("SELECT * FROM examples_ks.my_type", &[]) + let (query_result, _paging_state) = session + .query_single_page( + "SELECT * FROM examples_ks.my_type", + &[], + PagingState::start(), + ) .await?; - println!("Q: {:?}", q.rows); + println!("Q: {:?}", query_result.rows); Ok(()) }