Currently, there is no way to fetch data from the database without writing SQL. Therefore we want to have a way to query more easily.
An idea for the api would be this:
let products = connection.select::<Product>().limit(10).orderAsc().await?
For complex query's, using SQL will be the preferred option, since a query builder can not provide all functions.
Currently, there is no way to fetch data from the database without writing SQL. Therefore we want to have a way to query more easily. An idea for the api would be this:
For complex query's, using SQL will be the preferred option, since a query builder can not provide all functions.