rust-rel8 0.1.4

Rel8 but in rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use rust_rel8::{helper_tables::One, *};

fn no_being_naughty() {
    let mut x: Option<Expr<'static, i32>> = None;
    let q = query::<(Expr<i32>, Expr<i32>)>(|q| {
        let a = q.q(Query::values([1, 2, 3].map(|a| One { a })));
        let b = q.q(Query::values([4, 5, 6].map(|a| One { a })));
        x = Some(a.a.clone());
        return (a.a, b.a);
    });
    drop(q);
}

pub fn main() {
    no_being_naughty();
}