connection: Reexport QueryResult to avoid making a breaking change
Existing code imports scylla::transport::connection::QueryResult because it used to be located in this file.
Reexport QueryResult in connection.rs to avoid breaking the existing code.
@@ -28,7 +28,6 @@ use std::{
use super::errors::{BadKeyspaceName, BadQuery, DbError, QueryError};
-use super::query_result::QueryResult;
use crate::batch::{Batch, BatchStatement};
use crate::frame::{
self,
@@ -50,6 +49,10 @@ use crate::transport::Authenticator::{
};
use crate::transport::Compression;
+// Existing code imports scylla::transport::connection::QueryResult because it used to be located in this file.
+// Reexport QueryResult to avoid breaking the existing code.
+pub use crate::QueryResult;
+
// Queries for schema agreement
const LOCAL_VERSION: &str = "SELECT schema_version FROM system.local WHERE key='local'";
