dutchmartin / sprattus

An async ORM for Postgres
Apache License 2.0
19 stars 2 forks source link

Query builder #2

Open dutchmartin opened 4 years ago

dutchmartin commented 4 years ago

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.