4 releases
0.3.4 | Jul 20, 2020 |
---|---|
0.3.3 | Jul 19, 2020 |
0.3.2 | Jul 16, 2020 |
0.3.1 | Jul 4, 2020 |
#710 in Asynchronous
1.5MB
1K
SLoC
arangoq
A quick arangodb query builder layer for rust.
let url = || mockito::server_url();
let conn = ArangoConnection::new(url(), "test_db".to_string(), Client::default());
#[derive(ArangoBuilder, Serialize)]
pub struct Person {
name: &'static str,
age: u8,
}
let collection_name = "People";
let query = Person::query_builder(collection_name)
.read()
.filter()
.name_eq(&"John Lennon")
.or()
.name_eq(&"George Harrison")
.and()
.age_gt(&42)
.limit(10)
.build();
query.try_exec::<Person>(&conn).await;
optional features
- ["actors"] actix async actor implementation for queries
Semver
This crate is in pre semver state, breaking changes increment minor.
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
cargo
cargo install cargo-sort-ck
cargo-sort-ck
cargo clippy
release
cargo install cargo-release
cargo release patch
Dependencies
~4.5–10MB
~184K SLoC