Skip to content

Commit

Permalink
response/result: re-export pub types
Browse files Browse the repository at this point in the history
Re-exported types that should be exposed to users.
Re-exported types:
- ColumnSpec
- ColumnType
- CqlValue
- PartitionKeyIndex
- Row
- TableSpec

Note for reviewers: As mentioned in
#925 (comment),
we should not expose the `PreparedMetadata` structure. I believe
the same applies to `ResultMetadata`. That's why I decided not to
re-export them.
  • Loading branch information
muzarski committed Mar 27, 2024
1 parent 8b5cabb commit 73bbf87
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scylla/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,15 @@ pub mod frame {
}

pub mod response {
pub use scylla_cql::frame::response::cql_to_rust;
pub(crate) use scylla_cql::frame::response::*;
pub use scylla_cql::frame::response::{cql_to_rust, result};

pub mod result {
pub(crate) use scylla_cql::frame::response::result::*;
pub use scylla_cql::frame::response::result::{
ColumnSpec, ColumnType, CqlValue, PartitionKeyIndex, Row, TableSpec,
};
}
}
}

Expand Down

0 comments on commit 73bbf87

Please sign in to comment.