#edge-db #query #traits #composable #attributes #edgedb-composable-query #composable-query

macro edgedb-composable-query-derive

ComposableQuery trait derivation for EdgeDB. Use with edgedb-composable-query.

3 releases

0.0.4 Dec 2, 2023
0.0.3 Dec 2, 2023
0.0.1 Nov 13, 2023

#13 in #edge-db


Used in edgedb-composable-query

MIT/Apache

38KB
912 lines

edgedb-composable-query

Crates.io Docs.rs License

Query arbitrary structs from EdgeDB. Compose queries of arbitrary complexity.

Beware: it's very much a work-in-progress. Pre-0.1. It's messy, there're todo!()'s in the code, etc. I'm still figuring out the semantics. If you're interested in this working for your use-cases, please try it and file the issues at: https://github.com/valyagolev/edgedb-composable-query/issues. But don't use it seriously yet; it might panic, and will change the API.

Two major parts of the crate:

  1. A set of tools, around the EdgedbObject derivable trait, that allow you to query arbitrary rust structs from EdgeDB, converting types automatically. See examples below: https://docs.rs/edgedb-composable-query/latest/edgedb_composable_query/

  2. A set of tools, around the composable::EdgedbComposableQuery derivable trait, that allow you express complex, composable queries through Rust structs and attributes. See docs and examples in the [composable] submodule: https://docs.rs/edgedb-composable-query/latest/edgedb_composable_query/composable/index.html

Dependencies

~1–1.6MB
~33K SLoC