aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/database_entity_crud.rs
Commit message (Collapse)AuthorAgeFilesLines
* mostly done with CRUD refactorBryan Newbold2018-09-071-8/+618
| | | | One failing test in this commit.
* batch inserts by defaultBryan Newbold2018-09-071-21/+55
|
* generic create (multiple inserts)Bryan Newbold2018-09-071-26/+24
| | | | | | | This does away entirely with the fancy CTE-based custom SQL inserts. Because performance is currently only important for batch inserts, I think this is acceptable, and will refactor to do batch inserts as actual batch SQL operations next.
* crud: refactor to split out rev insertBryan Newbold2018-09-071-43/+51
|
* major CRUD refactorBryan Newbold2018-09-071-0/+250
This is the start of a large refactor to move all entity CRUD (create, read, update, delete) model/database code into it's own file. HACKING has been updated with an overview of what happens in each file. Next steps: - split rev (and sub-table) insertion in to db_rev_insert and make create/update generic - inserts should be batch (vector) by default - move all other entities into this new trait framework - bypass api_server wrappers and call into CRUD from api_wrappers for entity ops (should be a big cleanup)