@@ -131,8 +131,84 @@ pub mod frame {
131131}
132132
133133/// Serializing bound values of a query to be sent to the DB.
134+ // Note: When editing comment on submodules here edit corresponding comments
135+ // on scylla-cql modules too.
134136pub mod serialize {
135- pub use scylla_cql:: types:: serialize:: * ;
137+ pub use scylla_cql:: types:: serialize:: SerializationError ;
138+ /// Contains the [BatchValues][batch::BatchValues] and [BatchValuesIterator][batch::BatchValuesIterator] trait and their
139+ /// implementations.
140+ pub mod batch {
141+ // Main types
142+ pub use scylla_cql:: types:: serialize:: batch:: {
143+ BatchValues , BatchValuesFromIterator , BatchValuesIterator ,
144+ BatchValuesIteratorFromIterator , TupleValuesIter ,
145+ } ;
146+
147+ // Legacy migration types - to be removed when removing legacy framework
148+ pub use scylla_cql:: types:: serialize:: batch:: {
149+ LegacyBatchValuesAdapter , LegacyBatchValuesIteratorAdapter ,
150+ } ;
151+ }
152+
153+ /// Contains the [RawBatchValues][raw_batch::RawBatchValues] and [RawBatchValuesIterator][raw_batch::RawBatchValuesIterator]
154+ /// trait and their implementations.
155+ pub mod raw_batch {
156+ pub use scylla_cql:: types:: serialize:: raw_batch:: {
157+ RawBatchValues , RawBatchValuesAdapter , RawBatchValuesIterator ,
158+ RawBatchValuesIteratorAdapter ,
159+ } ;
160+ }
161+
162+ /// Contains the [SerializeRow][row::SerializeRow] trait and its implementations.
163+ pub mod row {
164+ // Main types
165+ pub use scylla_cql:: types:: serialize:: row:: { RowSerializationContext , SerializeRow } ;
166+
167+ // Errors
168+ pub use scylla_cql:: types:: serialize:: row:: {
169+ BuiltinSerializationError , BuiltinSerializationErrorKind , BuiltinTypeCheckError ,
170+ BuiltinTypeCheckErrorKind ,
171+ } ;
172+
173+ // Legacy migration types - to be removed when removing legacy framework
174+ pub use scylla_cql:: types:: serialize:: row:: {
175+ // Legacy migration types - to be removed when removing legacy framework
176+ serialize_legacy_row,
177+ ValueListAdapter ,
178+ ValueListToSerializeRowAdapterError ,
179+ } ;
180+
181+ // Not part of the old framework, but something that we should
182+ // still aim to remove from public API.
183+ pub use scylla_cql:: types:: serialize:: row:: { SerializedValues , SerializedValuesIterator } ;
184+ }
185+
186+ /// Contains the [SerializeValue][value::SerializeValue] trait and its implementations.
187+ pub mod value {
188+ // Main types
189+ pub use scylla_cql:: types:: serialize:: value:: SerializeValue ;
190+
191+ // Errors
192+ pub use scylla_cql:: types:: serialize:: value:: {
193+ BuiltinSerializationError , BuiltinSerializationErrorKind , BuiltinTypeCheckError ,
194+ BuiltinTypeCheckErrorKind , MapSerializationErrorKind , MapTypeCheckErrorKind ,
195+ SetOrListSerializationErrorKind , SetOrListTypeCheckErrorKind ,
196+ TupleSerializationErrorKind , TupleTypeCheckErrorKind , UdtSerializationErrorKind ,
197+ UdtTypeCheckErrorKind ,
198+ } ;
199+
200+ // Legacy migration types - to be removed when removing legacy framework
201+ pub use scylla_cql:: types:: serialize:: value:: {
202+ serialize_legacy_value, ValueAdapter , ValueToSerializeValueAdapterError ,
203+ } ;
204+ }
205+
206+ /// Contains types and traits used for safe serialization of values for a CQL statement.
207+ pub mod writers {
208+ pub use scylla_cql:: types:: serialize:: writers:: {
209+ CellOverflowError , CellValueBuilder , CellWriter , RowWriter , WrittenCellProof ,
210+ } ;
211+ }
136212}
137213
138214/// Deserializing DB response containing CQL query results.
0 commit comments