Skip to content

Commit 99d30ab

Browse files
authored
Expose all the bolt types (#145)
1 parent 7df4965 commit 99d30ab

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,5 +446,9 @@ pub use crate::types::serde::{
446446
DeError, EndNodeId, Id, Indices, Keys, Labels, Nodes, Offset, Relationships, StartNodeId,
447447
Timezone, Type,
448448
};
449-
pub use crate::types::{BoltList, BoltMap, BoltString, BoltType};
449+
pub use crate::types::{
450+
BoltBoolean, BoltBytes, BoltDate, BoltDateTime, BoltDateTimeZoneId, BoltDuration, BoltFloat,
451+
BoltInteger, BoltList, BoltLocalDateTime, BoltLocalTime, BoltMap, BoltNode, BoltNull, BoltPath,
452+
BoltPoint2D, BoltPoint3D, BoltRelation, BoltString, BoltTime, BoltType, BoltUnboundedRelation,
453+
};
450454
pub use crate::version::Version;

lib/src/types/binary.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ impl BoltBytes {
2323
pub fn len(&self) -> usize {
2424
self.value.len()
2525
}
26+
27+
#[must_use]
28+
pub fn is_empty(&self) -> bool {
29+
self.value.is_empty()
30+
}
2631
}
2732

2833
impl BoltWireFormat for BoltBytes {

0 commit comments

Comments
 (0)