gel-protocol 0.9.2

Low-level protocol implementation for Gel database client. For applications, use gel-tokio. Formerly published as edgedb-protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use gel_protocol::model::Vector;
use gel_protocol::queryable::Queryable;

#[test]
fn decode_vector() {
    let vec = Vector::decode(
        &Default::default(),
        &(),
        b"\0\x03\0\0?\x80\0\0@\0\0\0@@\0\0",
    )
    .unwrap();
    assert_eq!(vec, Vector(vec![1., 2., 3.]));
}