summary refs log tree commit diff stats
path: root/src/db.rs
Commit message (Collapse)AuthorAgeFilesLines
* removed panics and refactored error handlingBen Morrison2020-05-261-12/+17
| | | | | | | | Using a helper function to handle fatal errors error::helper() Displays the simplified message if an error condition occurs. Displays both the simplified and the raw error message if -v verbose logging is enabled.
* hiding some log messages behind -v flagBen Morrison2020-05-261-5/+13
|
* using in-memory db for tests, passing path to logging::init() instead of ↵Ben Morrison2020-05-261-1/+1
| | | | assuming
* logging changes:Ben Morrison2020-05-261-5/+2
| | | | | | | | | | Rather than using a new logfile for each invocation, a single logfile called `/tmp/clinte_$USER.log` will be used, with later invocations appending to the previous messages. Also removed some unnecessary `use` statements relating to the `log` crate and its macros. Leaving the macro calls namespaced to `log::` makes it clearer what the behavior is.
* reorganizationBen Morrison2019-09-041-1/+2
|
* fixed broken test, expanded test v0.3.3Ben Morrison2019-08-301-1/+1
|
* ensure submitted posts are utf8Ben Morrison2019-08-301-1/+1
|
* tests in makefile, cleaned db testBen Morrison2019-08-281-1/+1
|
* db tests are on separate pathBen Morrison2019-08-281-4/+6
|
* enabled hints for cli args, changed db locationBen Morrison2019-08-281-1/+1
|
* minor db test - will expand laterBen Morrison2019-08-281-0/+13
|
* cleanupBen Morrison2019-08-281-34/+0
|
* finished posting and displayBen Morrison2019-08-271-27/+9
|
* added subtype to db::Cmd. Fleshed out cli args.Ben Morrison2019-08-271-7/+9
|
* db connected, logging upBen Morrison2019-08-271-3/+26
|
* fleshing out typesBen Morrison2019-08-271-0/+81