Expand description
Handling of habit databases.
Structs§
Enums§
- AddCategory
Result - Result from the call to
add_category - Hide
Category Result - Result from the call to
hide_category - Successful
Update - Result of an update to a
DiaryDataSqliteinstance.
Constants§
- DATE_
FORMAT - Format of the dates used in the program.
Functions§
- create_
new_ datafile - Create a new database on the prescribed path, using the prescribed headers.
- create_
new_ sqlite - get_
date_ ranges - Calculates the date ranges according to the parameters.
For example when
range_size == 30,iters == 3andfrom_dateis today, the result is a 3-element vector containing ranges of the last 30 days, the 30 days before that, and the 30 days before the latter one. - open_
datafile - Tries to read data file to memory.