Commit Graph

7 Commits

Author SHA1 Message Date
Peter McGoron 82a184b745 add prepare0 2022-04-28 20:16:09 -04:00
Peter McGoron af24722b2e add check function 2021-10-16 13:40:43 -04:00
Peter McGoron 85acaca0b5 add a boolean to the monad to be more flexible with error management
To optimize Sqlite3 queries, prepared statements are typically
kept instead of re-prepared so that they may be executed multiple
times. This allows for prepared statements to not be finalized on
destruction, allowing for reuse even when an error has occured.
2021-10-16 13:35:03 -04:00
Peter McGoron 7287437c82 redo rowfold, iter, and map 2021-10-16 08:37:53 -04:00
Peter McGoron 57b48639ab rearrange functions
* Replace getrow with get_exactly_one_row, since there was no
  way to detect when another row would be available
* Introduce rowfold, which allows for iterating over all rows
  returns fromed a SQL query
* Introduce functions into the interface that were left out
2021-10-09 22:25:47 -04:00
Peter McGoron 27962fc7d2 fix build 2021-10-09 22:25:34 -04:00
Peter McGoron 8c8496da46 move over stuff from old project 2021-10-09 21:45:43 -04:00