@@ -14,7 +14,7 @@ prepares the statement before execution. The reason for this is to provide type
1414# use scylla :: client :: session :: Session ;
1515# use std :: error :: Error ;
1616# async fn check_only_compiles (session : & Session ) -> Result <(), Box <dyn Error >> {
17- use scylla :: statement :: prepared_statement :: PreparedStatement ;
17+ use scylla :: statement :: prepared :: PreparedStatement ;
1818
1919// Prepare the query for later execution
2020let prepared : PreparedStatement = session
@@ -57,7 +57,7 @@ For example to change the consistency:
5757# use scylla :: client :: session :: Session ;
5858# use std :: error :: Error ;
5959# async fn check_only_compiles (session : & Session ) -> Result <(), Box <dyn Error >> {
60- use scylla :: statement :: prepared_statement :: PreparedStatement ;
60+ use scylla :: statement :: prepared :: PreparedStatement ;
6161use scylla :: statement :: Consistency ;
6262
6363// Prepare the query for later execution
@@ -109,7 +109,7 @@ TABLE ks.prepare_table (
109109# use scylla :: client :: session :: Session ;
110110# use std :: error :: Error ;
111111# async fn check_only_compiles (session : & Session ) -> Result <(), Box <dyn Error >> {
112- use scylla :: statement :: prepared_statement :: PreparedStatement ;
112+ use scylla :: statement :: prepared :: PreparedStatement ;
113113
114114// WRONG - partition key value is passed in query string
115115// Load balancing will compute the wrong partition key
0 commit comments