edgedb-query-builder 0.1.2

A query builder for Edgedb written in Rust
Documentation
  • Coverage
  • 35.29%
    6 out of 17 items documented1 out of 7 items with examples
  • Size
  • Source code size: 4.65 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.45 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ibx34

EdgeDB Query Builder

dont judge it too hard please....// This crate is still VERY VERY in dev. Below is a simple example of how to insert something and select it.

let new_movie_name = String::from("Ferris, a true story.");
let query = Query::new().insert("Movie", vec![(String::from("title"), new_movie_name.to_owned())]).build();

conn.query_single::<Movie2, _>(
    &query,
    &(),
).await?;

let query = Query::new().select("Movie", vec!["id", "title"]).filter(vec![(String::from("title"), new_movie_name)]).build();

let val = conn.query::<Movie, _>(
    &query,
    &(),
).await?;

View the full example here