27 Commits

Author SHA1 Message Date
filifa
7e49f06d8e add check for unset XBIT_DB 2024-03-19 20:31:33 -05:00
filifa
c4a1f07ee2 remove makefile 2024-03-19 20:31:33 -05:00
filifa
00ed30838a add readme 2024-03-19 20:31:33 -05:00
filifa
9b480b8d40 use env var for db path 2024-03-19 20:31:32 -05:00
filifa
6bc4e06c8f slight restructure 2024-03-19 20:31:32 -05:00
filifa
9bb7912e0f change module path 2024-03-19 20:31:32 -05:00
filifa
5b502c6ad2 add makefile 2024-03-19 20:31:32 -05:00
filifa
51d3473c17 remove prepared statement 2024-03-19 20:31:32 -05:00
filifa
a49301e826 make n flag uint 2024-03-19 20:31:32 -05:00
filifa
270bf73b4d move limits logic to main 2024-03-19 20:31:32 -05:00
filifa
1892e77e4f split limit determination into separate function 2024-03-19 20:31:32 -05:00
filifa
139bfff209 add -a and -b flags 2024-03-19 20:31:32 -05:00
filifa
6f19d10fa0 add -n check 2024-03-19 20:31:32 -05:00
filifa
66c1962999 have output() return errors on null data 2024-03-19 20:31:32 -05:00
filifa
106af3222e fix runtime error when -n is larger than number of rows in query 2024-03-19 20:31:32 -05:00
filifa
233e56a568 add flag for outputting multiple events 2024-03-19 20:31:32 -05:00
filifa
731ff6384d return errors 2024-03-19 20:31:32 -05:00
filifa
c82b2bf6df print "years ago" instead of date when not yearknown 2024-03-19 20:31:32 -05:00
filifa
227c6661ac split output code into method 2024-03-19 20:31:32 -05:00
filifa
a2f48ed7cc add infra for unknown dates 2024-03-19 20:31:32 -05:00
filifa
1e49d6098c add basic go program 2024-03-19 20:31:32 -05:00
filifa
c21848ba26 add timestamps 2024-03-19 20:31:32 -05:00
filifa
83e055b1b5 don't track db files 2024-03-19 20:31:32 -05:00
filifa
e7835ed7ed add index on timestamp column 2024-03-19 20:31:32 -05:00
filifa
db1427bd69 restructure table 2024-03-19 20:31:32 -05:00
filifa
27aaf39302 delete some bad rows 2024-03-19 20:31:32 -05:00
filifa
bddb1b0de7 initial commit 2024-03-19 20:31:32 -05:00