aboutsummaryrefslogtreecommitdiffstats
path: root/src/db.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add db::get_screeinings to get plain screening model.Harald Eilertsen2019-08-101-0/+5
|
* Rename Screening model to AggregateScreeningHarald Eilertsen2019-08-101-2/+2
|
* Update /screenings endpoint to return full info on screenings.Harald Eilertsen2019-04-281-3/+4
| | | | | This makes each screening record self-contained, and the json payload more consistent with how it semantically fit together.
* Import model structs to main models module.Harald Eilertsen2019-04-081-8/+8
|
* Move functions to query/modify db to connection object.Harald Eilertsen2019-04-081-0/+62
| | | | | | Makes tha API a bit nicer by asking the database rather than passing the database on to each model. Reserve models for method/functions that work on the model structs themselves.
* Actually fetch available rooms from the database.Harald Eilertsen2019-03-211-1/+0
|
* Refactoring, move db connection and room controller to separate modules.Harald Eilertsen2019-03-041-0/+26