Toql Rocket

Description

Use Toql with Rocket. This crate adds:

Snippet

```rust --snip-- use toqlrocket::{Result, ToqlQuery, loadmany, Counted, toql::sql_mapper::SqlMapperCache};

[get("/?

pub fn query( mappers: State, conn: ExampleDbConnection, toql: Form) -> Result>>> { let ExampleDbConnection(mut c) = conn;

let r = load_many::<User>(&toql, &mappers, &mut c)?;
Ok(Counted(Json(r.0), r.1))

} ```

Resources

Check out the CRUD example.

Installation

Add this to your Cargo.toml:

```toml [dependencies] toql_rocket = { version = "0.1", features= ["mysql"] }

```

License

Toql Rocket is distributed under the terms of both the MIT license and the Apache License (Version 2.0).