Skip to content

Commit

Permalink
scylla/lib.rs: Remove stars in serialization frameworks imports
Browse files Browse the repository at this point in the history
It is easier to see what is imported, and decide if it should be,
if one can see what exactly is imported. This is hard to do with stars,
so, as part of API stabilization effort, those are removed here.

For now, I did not remove any imports, so this change should not
be breaking.
  • Loading branch information
Lorak-mmk committed Oct 14, 2024
1 parent eb14ca8 commit fab9fe1
Showing 1 changed file with 79 additions and 1 deletion.
80 changes: 79 additions & 1 deletion scylla/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,85 @@ pub mod frame {

/// Serializing bound values of a query to be sent to the DB.
pub mod serialize {
pub use scylla_cql::types::serialize::*;
pub use scylla_cql::types::serialize::SerializationError;
pub mod batch {
pub use scylla_cql::types::serialize::batch::{
BatchValues,
BatchValuesIterator,
TupleValuesIter,
BatchValuesFromIterator,
BatchValuesIteratorFromIterator,

// Legacy migration types - to be removed when removing legacy framework
LegacyBatchValuesAdapter,
LegacyBatchValuesIteratorAdapter,
};
}

pub mod raw_batch {
pub use scylla_cql::types::serialize::raw_batch::{
RawBatchValues,
RawBatchValuesIterator,
RawBatchValuesAdapter,
RawBatchValuesIteratorAdapter,
};
}

pub mod row {
pub use scylla_cql::types::serialize::row::{
// Main types
SerializeRow,
RowSerializationContext,

// Errors
BuiltinTypeCheckError,
BuiltinTypeCheckErrorKind,

// Legacy migration types - to be removed when removing legacy framework
serialize_legacy_row,
BuiltinSerializationError,
BuiltinSerializationErrorKind,

// Not part of the old framework, but something that we should
// still aim to remove.
SerializedValues,
SerializedValuesIterator,
ValueListAdapter,
ValueListToSerializeRowAdapterError,
};
}

pub mod value {
pub use scylla_cql::types::serialize::value::{
// Main types
SerializeValue,

// Errors
BuiltinSerializationError,
BuiltinSerializationErrorKind,
BuiltinTypeCheckError,
BuiltinTypeCheckErrorKind,
MapSerializationErrorKind,
MapTypeCheckErrorKind,
SetOrListSerializationErrorKind,
SetOrListTypeCheckErrorKind,
TupleSerializationErrorKind,
TupleTypeCheckErrorKind,
UdtSerializationErrorKind,
UdtTypeCheckErrorKind,

// Legacy migration types - to be removed when removing legacy framework
serialize_legacy_value,
ValueAdapter,
ValueToSerializeValueAdapterError,
};
}

pub mod writers {
pub use scylla_cql::types::serialize::writers::{
CellOverflowError, CellValueBuilder, CellWriter, RowWriter, WrittenCellProof,
};
}
}

/// Deserializing DB response containing CQL query results.
Expand Down

0 comments on commit fab9fe1

Please sign in to comment.