5414f3e141
Implement labels
...
- create label table
- create base database object class
- rename primary keys to 'id'
- log messages with label
- automatically reassign label to repo where possible
2021-05-05 04:07:59 +01:00
02e4311bc7
Add custom output directory argument
2021-05-04 14:25:16 +01:00
018b96df75
Create shell script
2021-05-04 14:16:13 +01:00
abb64202fe
Add basic summary functionality
2021-05-04 14:10:18 +01:00
0e97cdfa1a
Add None check for primary keys
2021-05-04 14:10:10 +01:00
f93c93b751
Implement get methods for retrieving latest stats
2021-05-04 14:09:47 +01:00
3b7405fe9c
Move output handler to borg package
2021-05-04 12:53:42 +01:00
b49be0c0ba
Use absolute imports
2021-05-04 12:52:16 +01:00
dfecc40d2b
Create top level package
2021-05-04 12:46:35 +01:00
9f020c0ee5
Add get all methods
2021-05-04 12:05:10 +01:00
b9664263d0
Add primary key attribute to borg classes
2021-05-04 12:04:46 +01:00
57255d964c
Handle borg output in separate class
2021-05-04 11:45:14 +01:00
1d683b1163
Implement basic error logging
2021-05-04 09:34:55 +01:00
c39f9ed250
Create database class
2021-05-04 09:25:41 +01:00
824ce4c4eb
Update planned features
2021-05-04 05:58:39 +01:00
9d9778dc8c
Add links
2021-05-04 05:56:47 +01:00
4103ec1f16
Add planned features and basic howto
2021-05-04 05:54:21 +01:00
75521f61ee
Correct _insert signature for consistency
2021-05-04 05:48:18 +01:00
40ecdf04ef
Separate sql logic from borg classes
2021-05-04 05:44:36 +01:00
06331f4a83
Create standalone borg classes
2021-05-04 05:17:11 +01:00
7ded6889d8
Handle primary key in base class
2021-05-04 05:04:21 +01:00
15fa51aa39
Create features list
2021-05-04 04:38:24 +01:00
0adca142c0
Store stats in separate table
2021-05-04 04:36:32 +01:00
bb2e997705
Parse borg JSON instead of raw output
...
- Create db connection interface
- Create repo and archive database classes
2021-05-04 04:18:42 +01:00
a663450c26
Create table in constructor
2021-05-04 03:02:42 +01:00
7a8b027716
Don't store duration in db
2021-05-03 18:14:34 +01:00
20218372d5
Improve seconds conversion code... slightly...
2021-05-03 18:10:00 +01:00
f5c39076fd
Strip lines correctly
2021-05-03 18:01:57 +01:00
9e053c715d
Add end time
2021-05-03 17:56:01 +01:00
7f63ad51f9
Remove nonsense
2021-05-03 17:37:49 +01:00
3e33256e65
Clean code up
...
- Remove unnecessary database query methods
- Remove horrible db column names
- Convert static methods to class methods
2021-05-03 17:36:26 +01:00
d45acedc5a
Remove out of date text
2017-07-18 12:52:20 +01:00
George Lacey
cc5e84d378
Change vision to aim
...
I'm not Steve Jobs...
2017-02-14 10:52:30 +00:00
George Lacey
fbcf92d7fe
Update README.md
2017-01-23 18:02:05 +00:00
George Lacey
de463b1aec
Add query_year()
2016-09-23 22:11:04 +01:00
George Lacey
5d299e7d82
Add minor documentation
2016-09-22 11:36:05 +01:00
George Lacey
f6a52ece4d
Add query()
...
- Add query() to query db and return result as list of attributes
- Refactor row_string -> rows in create_table()
- Add method documentation
2016-09-21 20:33:44 +01:00
George Lacey
3229d125b3
Format datetime string correctly
...
- Format datetime string in a manner compatible with sqlite (i.e.
"2016-02-04 12:03" rather than "2016-2-4 12:3")
2016-09-21 17:09:06 +01:00
George Lacey
a5e4aa43af
Change start_time type to text
2016-09-21 16:39:16 +01:00
George Lacey
9e1c46f4d4
Add calculated duration to database
...
Calculated duration added rather than placeholder
2016-09-21 10:03:50 +01:00
George Lacey
4f682a3b31
Calculate duration from string
2016-09-21 10:00:01 +01:00
George Lacey
d8cfffeef9
Ignore pycharm settings directory
2016-09-20 20:57:52 +01:00
George Lacey
f6bd684b97
Add insert method
...
Method inserts log entry to database
2016-09-20 20:55:25 +01:00
George Lacey
75beecf584
Create database
...
- Create database
- Add table to store log entries
- Insert borg output to database
2016-09-20 20:54:13 +01:00
George Lacey
88319cba3c
Correct datetime attribute references
2016-09-20 20:35:58 +01:00
George Lacey
774497c1f0
Add datetime_string()
...
Convert datetime object into sqlite compatible string
2016-09-20 20:33:04 +01:00
George Lacey
98b6f74974
Add .db files to .gitignore
2016-09-20 18:41:49 +01:00
George Lacey
bedad8df22
Refactor db_connection -> Database
2016-09-20 18:39:37 +01:00
George Lacey
4d60fd4adb
Rename db_connection.py -> Database.py
2016-09-20 18:39:16 +01:00
George Lacey
da47c5a3fb
Refactor log_entry -> LogEntry
2016-09-20 18:36:20 +01:00