Use Toql with Rocket. This crate adds:
load_many()
function that works with URL query parameters```rust --snip-- use toqlrocket::{Result, ToqlQuery, loadmany, Counted, toql::sql_mapper::SqlMapperCache};
pub fn query( mappers: State
let r = load_many::<User>(&toql, &mappers, &mut c)?;
Ok(Counted(Json(r.0), r.1))
} ```
Check out the CRUD example.
Add this to your Cargo.toml
:
```toml [dependencies] toql_rocket = { version = "0.1", features= ["mysql"] }
```
Toql Rocket is distributed under the terms of both the MIT license and the Apache License (Version 2.0).