arangoq

An AQL query builder layer and ArangoDb client for rust.


Keywords
arangodb, arangoq, blockchain, database, distributed-database, document-database, graph-database, graphdb, key-value, multi-model, nosql, query-builder, rust
Licenses
MIT/Apache-2.0

Documentation

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

1

cargo

cargo install cargo-sort-ck

cargo-sort-ck

cargo clippy

release

cargo install cargo-release

cargo release patch