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 Feb 19, 2024
1 parent 5192e35 commit e6c4b44
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 e6c4b44

Please sign in to comment.