StardustDL / Linq-in-Rust

Language Integrated Query in Rust.
Apache License 2.0
128 stars 7 forks source link

Question #3

Open naomijub opened 4 years ago

naomijub commented 4 years ago

What do you think of extending this crate to support LINq for Crux Datalog Query language?

This is Crux Datalog client in Rust: https://github.com/naomijub/transistor. This is Crux Docs: https://opencrux.com/docs#queries

mrudat commented 8 months ago

Presuming the long-term goal is a full clone of LINQ in Rust, this crate would provide:

Other generic collections would work, though almost certainly inefficiently, because their performance characteristics differ from the standard collections, otherwise, why would they be worth the effort of implementing?

I assume that implementing LINQ for SQL in Rust would be a distinct crate, which would provide a concrete implementation that would collect all the expressions (are macros magic enough to do that?) and serialise the query in SQL, presumably explicitly targeting a placeholder collection class identifying a table.

If so, adding specific (ie. efficient) support for a custom collection class would be something for a hypothetical 'linq-for-foo' crate that depends on this crate and the foo crate.