(limit: i64, offset: i64)
| 212 | } |
| 213 | |
| 214 | pub async fn list(limit: i64, offset: i64) -> Result<Vec<User>, Error> { |
| 215 | let items = user::dsl::user |
| 216 | .order_by(user::dsl::email) |
| 217 | .limit(limit) |
| 218 | .offset(offset) |
| 219 | .load(&mut get_async_db_conn().await?) |
| 220 | .await?; |
| 221 | Ok(items) |
| 222 | } |
| 223 | |
| 224 | // The output format is documented here: |
| 225 | // https://github.com/P-H-C/phc-string-format/blob/master/phc-sf-spec.md#specification |
no test coverage detected