Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom timestamps as a per-execution setting #1164

Open
wants to merge 50 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2998e1c
statement mod: add docstring
wprzytula Jan 1, 2025
6a79562
topology->metadata
wprzytula Aug 30, 2023
cacdc76
host_filter: docs: remove needless ref
wprzytula Jan 1, 2025
fff28e6
move session out of transport
wprzytula Aug 30, 2023
a3f9c9b
move caching_session.rs to new session mod
wprzytula Aug 30, 2023
1bf0785
extract connection module
wprzytula Aug 30, 2023
1aa082a
re-export Compression in connection module
wprzytula Dec 29, 2024
e1a0b1c
move open_connection_to_shard_aware_port() to connection
wprzytula Aug 30, 2023
60acd68
AddressTranslator session->connection
wprzytula Aug 30, 2023
cab91f4
connection: add module docstring
wprzytula Jan 1, 2025
5543904
move metadata.rs to new cluster mod
wprzytula Aug 30, 2023
32fba06
move cluster.rs to new cluster mod
wprzytula Aug 30, 2023
ab1b0a2
move node.rs to new cluster mod
wprzytula Dec 7, 2024
143776b
node: fix typo
wprzytula Jan 1, 2025
a9c74ea
move host_filter.rs to new cluster mod
wprzytula Dec 7, 2024
14a6e83
cluster: add module docstring
wprzytula Jan 1, 2025
8d2ce9b
introduce execution module
wprzytula Dec 18, 2024
5cab751
move execution_profile.rs to new execution module
wprzytula Jan 1, 2025
5412e11
move load_balancing to new execution mod
wprzytula Jan 1, 2025
4fd13b7
move speculative_execution.rs to new execution mod
wprzytula Dec 18, 2024
4721f61
move retry policies to the new execution mod
wprzytula Dec 18, 2024
aceabc5
extract and restructure retries module
wprzytula Dec 18, 2024
ca9833d
lib: remove retries reexport
wprzytula Dec 18, 2024
5f7249f
move history.rs to execution mod
wprzytula Dec 18, 2024
984d46f
move tracing.rs to execution mod
wprzytula Dec 18, 2024
4bc040e
move metrics.rs to execution mod
wprzytula Dec 29, 2024
76d7ee7
move iterator.rs to execution module as pager.rs
wprzytula Dec 29, 2024
dc47ead
pager: improve module docstring
wprzytula Jan 1, 2025
c0414a9
move errors.rs to execution module
wprzytula Dec 29, 2024
3d711cf
execution: add module docstring
wprzytula Jan 1, 2025
a2db440
make routing.rs a separate directory
wprzytula Dec 29, 2024
1314d61
extract sharding.rs
wprzytula Dec 29, 2024
a7b2957
move partitioner.rs to routing mod
wprzytula Dec 29, 2024
b03cf42
partitioner: add module docstring
wprzytula Jan 1, 2025
16c7e14
move locator.rs to routing module
wprzytula Jan 1, 2025
3504409
routing: add module docstring
wprzytula Jan 1, 2025
d47a104
extract driver_tracing.rs with RequestSpan
wprzytula Dec 29, 2024
7025104
introduce response module
wprzytula Dec 29, 2024
c589d0b
move [NonError]QueryResponse to response module
wprzytula Dec 29, 2024
d8e81d5
move [legacy_]query_result.rs to response module
wprzytula Dec 29, 2024
111ff6b
re-export PagingState[Response] in response mod
wprzytula Dec 29, 2024
2dbee4a
response: add module docstring
wprzytula Jan 1, 2025
b646099
re-export Authenticator in authentication module
wprzytula Dec 29, 2024
68fd5d0
finally! annihilate transport module
wprzytula Dec 29, 2024
26c78fa
session: pass custom timestamp in request execution APIs
wprzytula Jan 2, 2025
c9880fc
session: add execution APIs with custom timestamp
wprzytula Jan 2, 2025
8787205
caching_session: add execution APIs with custom timestamp
wprzytula Jan 2, 2025
7bbb3ef
connection: pass custom timestamp in request execution APIs
wprzytula Jan 2, 2025
236cabf
[caching_]session: switch to per-execution custom timestamp API
wprzytula Jan 2, 2025
161ae8a
statement: remove per-statement custom timestamp setting
wprzytula Jan 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/connecting/compression.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ An example enabling `Snappy` compression algorithm:
# extern crate scylla;
# extern crate tokio;
use scylla::{Session, SessionBuilder};
use scylla::transport::Compression;
use scylla::connection::Compression;
use std::error::Error;

#[tokio::main]
Expand Down
6 changes: 3 additions & 3 deletions docs/source/execution-profiles/create-and-use.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To create an `ExecutionProfile` and attach it as default for `Session`:
# async fn check_only_compiles() -> Result<(), Box<dyn Error>> {
use scylla::{Session, SessionBuilder};
use scylla::statement::Consistency;
use scylla::transport::ExecutionProfile;
use scylla::execution::ExecutionProfile;

let profile = ExecutionProfile::builder()
.consistency(Consistency::LocalOne)
Expand All @@ -34,7 +34,7 @@ To create an `ExecutionProfile` and attach it to a `Query`:
# async fn check_only_compiles() -> Result<(), Box<dyn Error>> {
use scylla::query::Query;
use scylla::statement::Consistency;
use scylla::transport::ExecutionProfile;
use scylla::execution::ExecutionProfile;
use std::time::Duration;

let profile = ExecutionProfile::builder()
Expand All @@ -60,7 +60,7 @@ To create an `ExecutionProfile` based on another profile:
# use std::error::Error;
# async fn check_only_compiles() -> Result<(), Box<dyn Error>> {
use scylla::statement::Consistency;
use scylla::transport::ExecutionProfile;
use scylla::execution::ExecutionProfile;
use std::time::Duration;

let base_profile = ExecutionProfile::builder()
Expand Down
6 changes: 3 additions & 3 deletions docs/source/execution-profiles/maximal-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
use scylla::query::Query;
use scylla::speculative_execution::SimpleSpeculativeExecutionPolicy;
use scylla::statement::{Consistency, SerialConsistency};
use scylla::transport::ExecutionProfile;
use scylla::transport::load_balancing::DefaultPolicy;
use scylla::transport::retry_policy::FallthroughRetryPolicy;
use scylla::execution::ExecutionProfile;
use scylla::execution::load_balancing::DefaultPolicy;
use scylla::execution::retries::FallthroughRetryPolicy;
use std::{sync::Arc, time::Duration};

let profile = ExecutionProfile::builder()
Expand Down
2 changes: 1 addition & 1 deletion docs/source/execution-profiles/priority.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Priorities of execution profiles and directly set options:
use scylla::{Session, SessionBuilder};
use scylla::query::Query;
use scylla::statement::Consistency;
use scylla::transport::ExecutionProfile;
use scylla::execution::ExecutionProfile;

let session_profile = ExecutionProfile::builder()
.consistency(Consistency::One)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/execution-profiles/remap.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Below, the remaps described above are followed in code.
use scylla::{Session, SessionBuilder};
use scylla::query::Query;
use scylla::statement::Consistency;
use scylla::transport::ExecutionProfile;
use scylla::execution::ExecutionProfile;

let profile1 = ExecutionProfile::builder()
.consistency(Consistency::One)
Expand Down
6 changes: 3 additions & 3 deletions docs/source/load-balancing/load-balancing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ balancing plan based on the query information and the state of the cluster.

Load balancing policies do not influence to which nodes connections are
being opened. For a node connection blacklist configuration refer to
`scylla::transport::host_filter::HostFilter`, which can be set session-wide
`scylla::cluster::host_filter::HostFilter`, which can be set session-wide
using `SessionBuilder::host_filter` method.

In this chapter, "target" will refer to a pair `<node, optional shard>`.
Expand Down Expand Up @@ -51,8 +51,8 @@ The newly created execution profile is then converted to a handle using
# async fn check_only_compiles(uri: &str) -> Result<(), Box<dyn Error>> {
use scylla::SessionBuilder;
use scylla::load_balancing::DefaultPolicy;
use scylla::transport::ExecutionProfile;
use scylla::transport::session::Session;
use scylla::execution::ExecutionProfile;
use scylla::session::Session;
use std::sync::Arc;

let policy = Arc::new(DefaultPolicy::default());
Expand Down
2 changes: 1 addition & 1 deletion docs/source/migration-guides/0.15-deserialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ let legacy_result: LegacyQueryResult = result.into_legacy_result()?;

```rust
# extern crate scylla;
# use scylla::transport::iterator::{QueryPager, LegacyRowIterator};
# use scylla::execution::pager::{QueryPager, LegacyRowIterator};
# use std::error::Error;
# async fn check_only_compiles(pager: QueryPager) -> Result<(), Box<dyn Error>> {
let pager: QueryPager = pager;
Expand Down
10 changes: 5 additions & 5 deletions docs/source/queries/result.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ return a `QueryResult` with rows represented as `Option<Vec<Row>>`.

## Parsing using convenience methods

By calling [`QueryResult::into_rows_result`](https://docs.rs/scylla/latest/scylla/transport/query_result/struct.QueryResult.html#method.into_rows_result),
one can obtain [`QueryRowsResult`](https://docs.rs/scylla/latest/scylla/transport/query_result/struct.QueryRowsResult.html).
By calling [`QueryResult::into_rows_result`](https://docs.rs/scylla/latest/scylla/response/query_result/struct.QueryResult.html#method.into_rows_result),
one can obtain [`QueryRowsResult`](https://docs.rs/scylla/latest/scylla/response/query_result/struct.QueryRowsResult.html).
`QueryRowsResult` provides convenience methods for parsing rows.
Here are a few of them:
* `rows::<RowT>()` - returns the rows parsed as the given type
* `maybe_first_row::<RowT>()` - returns the first received row or `None` if there are no rows
* `first_row::<RowT>()` - returns the first received row; fails if there are no rows
* `single_row::<RowT>()` - same as `first_row`, but fails when there is more than one row

Additionally, [`QueryResult`](https://docs.rs/scylla/latest/scylla/transport/query_result/struct.QueryResult.html) has a method `result_not_rows()`, which ensures that query response was not `rows` and thus helps avoid bugs.
Additionally, [`QueryResult`](https://docs.rs/scylla/latest/scylla/response/query_result/struct.QueryResult.html) has a method `result_not_rows()`, which ensures that query response was not `rows` and thus helps avoid bugs.

```rust
# extern crate scylla;
Expand Down Expand Up @@ -59,8 +59,8 @@ session.query_unpaged("INSERT INTO ks.tab (a) VALUES (0)", &[]).await?.result_no
# Ok(())
# }
```
For more see [`QueryResult`](https://docs.rs/scylla/latest/scylla/transport/query_result/struct.QueryResult.html)
and [`QueryRowsResult`](https://docs.rs/scylla/latest/scylla/transport/query_result/struct.QueryRowsResult.html)
For more see [`QueryResult`](https://docs.rs/scylla/latest/scylla/response/query_result/struct.QueryResult.html)
and [`QueryRowsResult`](https://docs.rs/scylla/latest/scylla/response/query_result/struct.QueryRowsResult.html)

### `NULL` values
`NULL` values will return an error when parsed as a Rust type.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/queries/timeouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ However, setting per-statement timeout to `None` results in falling back to per-
# use std::error::Error;
# async fn timeouts() -> Result<(), Box<dyn Error>> {
use scylla::{Session, SessionBuilder, query::Query};
use scylla::transport::ExecutionProfile;
use scylla::execution::ExecutionProfile;
use std::time::Duration;

let uri = std::env::var("SCYLLA_URI")
Expand Down
12 changes: 6 additions & 6 deletions docs/source/retry-policy/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ To use in `Session`:
# use std::sync::Arc;
# async fn check_only_compiles() -> Result<(), Box<dyn Error>> {
use scylla::{Session, SessionBuilder};
use scylla::transport::ExecutionProfile;
use scylla::transport::retry_policy::DefaultRetryPolicy;
use scylla::execution::ExecutionProfile;
use scylla::execution::retries::DefaultRetryPolicy;

let handle = ExecutionProfile::builder()
.retry_policy(Arc::new(DefaultRetryPolicy::new()))
Expand All @@ -37,8 +37,8 @@ To use in a [simple query](../queries/simple.md):
# use std::sync::Arc;
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::query::Query;
use scylla::transport::ExecutionProfile;
use scylla::transport::retry_policy::DefaultRetryPolicy;
use scylla::execution::ExecutionProfile;
use scylla::execution::retries::DefaultRetryPolicy;

// Create a Query manually and set the retry policy
let mut my_query: Query = Query::new("INSERT INTO ks.tab (a) VALUES(?)");
Expand Down Expand Up @@ -66,8 +66,8 @@ To use in a [prepared query](../queries/prepared.md):
# use std::sync::Arc;
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::prepared_statement::PreparedStatement;
use scylla::transport::ExecutionProfile;
use scylla::transport::retry_policy::DefaultRetryPolicy;
use scylla::execution::ExecutionProfile;
use scylla::execution::retries::DefaultRetryPolicy;

// Create PreparedStatement manually and set the retry policy
let mut prepared: PreparedStatement = session
Expand Down
12 changes: 6 additions & 6 deletions docs/source/retry-policy/downgrading-consistency.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ To use in `Session`:
# use std::sync::Arc;
# async fn check_only_compiles() -> Result<(), Box<dyn Error>> {
use scylla::{Session, SessionBuilder};
use scylla::transport::ExecutionProfile;
use scylla::transport::downgrading_consistency_retry_policy::DowngradingConsistencyRetryPolicy;
use scylla::execution::ExecutionProfile;
use scylla::execution::retries::DowngradingConsistencyRetryPolicy;

let handle = ExecutionProfile::builder()
.retry_policy(Arc::new(DowngradingConsistencyRetryPolicy::new()))
Expand All @@ -78,8 +78,8 @@ To use in a [simple query](../queries/simple.md):
# use std::sync::Arc;
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::query::Query;
use scylla::transport::ExecutionProfile;
use scylla::transport::downgrading_consistency_retry_policy::DowngradingConsistencyRetryPolicy;
use scylla::execution::ExecutionProfile;
use scylla::execution::retries::DowngradingConsistencyRetryPolicy;

let handle = ExecutionProfile::builder()
.retry_policy(Arc::new(DowngradingConsistencyRetryPolicy::new()))
Expand All @@ -105,8 +105,8 @@ To use in a [prepared query](../queries/prepared.md):
# use std::sync::Arc;
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::prepared_statement::PreparedStatement;
use scylla::transport::ExecutionProfile;
use scylla::transport::downgrading_consistency_retry_policy::DowngradingConsistencyRetryPolicy;
use scylla::execution::ExecutionProfile;
use scylla::execution::retries::DowngradingConsistencyRetryPolicy;

let handle = ExecutionProfile::builder()
.retry_policy(Arc::new(DowngradingConsistencyRetryPolicy::new()))
Expand Down
12 changes: 6 additions & 6 deletions docs/source/retry-policy/fallthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ To use in `Session`:
# use std::sync::Arc;
# async fn check_only_compiles() -> Result<(), Box<dyn Error>> {
use scylla::{Session, SessionBuilder};
use scylla::transport::ExecutionProfile;
use scylla::transport::retry_policy::FallthroughRetryPolicy;
use scylla::execution::ExecutionProfile;
use scylla::execution::retries::FallthroughRetryPolicy;

let handle = ExecutionProfile::builder()
.retry_policy(Arc::new(FallthroughRetryPolicy::new()))
Expand All @@ -36,8 +36,8 @@ To use in a [simple query](../queries/simple.md):
# use std::sync::Arc;
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::query::Query;
use scylla::transport::ExecutionProfile;
use scylla::transport::retry_policy::FallthroughRetryPolicy;
use scylla::execution::ExecutionProfile;
use scylla::execution::retries::FallthroughRetryPolicy;

let handle = ExecutionProfile::builder()
.retry_policy(Arc::new(FallthroughRetryPolicy::new()))
Expand All @@ -63,8 +63,8 @@ To use in a [prepared query](../queries/prepared.md):
# use std::sync::Arc;
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::prepared_statement::PreparedStatement;
use scylla::transport::ExecutionProfile;
use scylla::transport::retry_policy::FallthroughRetryPolicy;
use scylla::execution::ExecutionProfile;
use scylla::execution::retries::FallthroughRetryPolicy;

let handle = ExecutionProfile::builder()
.retry_policy(Arc::new(FallthroughRetryPolicy::new()))
Expand Down
2 changes: 1 addition & 1 deletion docs/source/speculative-execution/percentile.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use scylla::{
Session,
SessionBuilder,
speculative_execution::PercentileSpeculativeExecutionPolicy,
transport::execution_profile::ExecutionProfile,
execution::execution_profile::ExecutionProfile,
};

let policy = PercentileSpeculativeExecutionPolicy {
Expand Down
2 changes: 1 addition & 1 deletion docs/source/speculative-execution/simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use scylla::{
Session,
SessionBuilder,
speculative_execution::SimpleSpeculativeExecutionPolicy,
transport::execution_profile::ExecutionProfile,
execution::execution_profile::ExecutionProfile,
};

let policy = SimpleSpeculativeExecutionPolicy {
Expand Down
6 changes: 3 additions & 3 deletions docs/source/tracing/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ return a `QueryResult` which contains a `tracing_id` if tracing was enabled.
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::query::Query;
use scylla::QueryResult;
use scylla::tracing::TracingInfo;
use scylla::execution::tracing::TracingInfo;
use uuid::Uuid;

// Create a Query manually and enable tracing
Expand Down Expand Up @@ -40,7 +40,7 @@ if let Some(id) = tracing_id {
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::prepared_statement::PreparedStatement;
use scylla::QueryResult;
use scylla::tracing::TracingInfo;
use scylla::execution::tracing::TracingInfo;
use uuid::Uuid;

// Prepare the query
Expand Down Expand Up @@ -72,7 +72,7 @@ if let Some(id) = tracing_id {
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::batch::Batch;
use scylla::QueryResult;
use scylla::tracing::TracingInfo;
use scylla::execution::tracing::TracingInfo;
use uuid::Uuid;

// Create a batch statement
Expand Down
4 changes: 2 additions & 2 deletions docs/source/tracing/paged.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ If tracing is enabled the row iterator will contain a list of tracing ids for al
# use std::error::Error;
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::query::Query;
use scylla::tracing::TracingInfo;
use scylla::execution::tracing::TracingInfo;
use futures::StreamExt;
use uuid::Uuid;

Expand Down Expand Up @@ -51,7 +51,7 @@ for id in tracing_ids {
# use std::error::Error;
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::prepared_statement::PreparedStatement;
use scylla::tracing::TracingInfo;
use scylla::execution::tracing::TracingInfo;
use futures::StreamExt;
use uuid::Uuid;

Expand Down
2 changes: 1 addition & 1 deletion docs/source/tracing/prepare.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::query::Query;
use scylla::prepared_statement::PreparedStatement;
use scylla::tracing::TracingInfo;
use scylla::execution::tracing::TracingInfo;
use uuid::Uuid;

// Prepare the query with tracing enabled
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tracing/query-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This history includes all requests sent, decisions to retry and speculative exec
# use std::error::Error;
# async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::query::Query;
use scylla::history::{HistoryCollector, StructuredHistory};
use scylla::execution::history::{HistoryCollector, StructuredHistory};
use std::sync::Arc;

// Create a query for which we would like to trace the history of its execution
Expand Down
2 changes: 1 addition & 1 deletion examples/allocations.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::Result;
use scylla::transport::session::Session;
use scylla::session::Session;
use scylla::{statement::prepared_statement::PreparedStatement, SessionBuilder};
use std::io::Write;
use std::sync::atomic::{AtomicUsize, Ordering};
Expand Down
2 changes: 1 addition & 1 deletion examples/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use anyhow::Result;
use futures::StreamExt as _;
use futures::TryStreamExt as _;
use scylla::frame::response::result::Row;
use scylla::transport::session::Session;
use scylla::session::Session;
use scylla::DeserializeRow;
use scylla::SessionBuilder;
use std::env;
Expand Down
2 changes: 1 addition & 1 deletion examples/compare-tokens.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use anyhow::Result;
use scylla::cluster::NodeAddr;
use scylla::routing::Token;
use scylla::transport::NodeAddr;
use scylla::{Session, SessionBuilder};
use std::env;

Expand Down
2 changes: 1 addition & 1 deletion examples/cql-time-types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use chrono::{DateTime, NaiveDate, NaiveTime, Utc};
use futures::{StreamExt as _, TryStreamExt as _};
use scylla::frame::response::result::CqlValue;
use scylla::frame::value::{CqlDate, CqlTime, CqlTimestamp};
use scylla::transport::session::Session;
use scylla::session::Session;
use scylla::SessionBuilder;
use std::env;

Expand Down
6 changes: 3 additions & 3 deletions examples/cqlsh-rs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ use rustyline::completion::{Completer, Pair};
use rustyline::error::ReadlineError;
use rustyline::{CompletionType, Config, Context, Editor};
use rustyline_derive::{Helper, Highlighter, Hinter, Validator};
use scylla::connection::Compression;
use scylla::frame::response::result::Row;
use scylla::transport::query_result::IntoRowsResultError;
use scylla::transport::session::Session;
use scylla::transport::Compression;
use scylla::response::query_result::IntoRowsResultError;
use scylla::session::Session;
use scylla::QueryResult;
use scylla::SessionBuilder;
use std::env;
Expand Down
2 changes: 1 addition & 1 deletion examples/custom_deserialization.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Result;
use scylla::deserialize::DeserializeValue;
use scylla::frame::response::result::ColumnType;
use scylla::transport::session::Session;
use scylla::session::Session;
use scylla::SessionBuilder;
use std::env;

Expand Down
5 changes: 3 additions & 2 deletions examples/custom_load_balancing_policy.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
use anyhow::Result;
use rand::thread_rng;
use rand::Rng;
use scylla::transport::NodeRef;
use scylla::cluster::NodeRef;
use scylla::{
cluster::ClusterData,
execution::ExecutionProfile,
load_balancing::{LoadBalancingPolicy, RoutingInfo},
routing::Shard,
transport::{ClusterData, ExecutionProfile},
Session, SessionBuilder,
};
use std::{env, sync::Arc};
Expand Down
Loading
Loading