Commit graph

8 commits

Author SHA1 Message Date
saji 68347e8b95 rework DB getters
Some checks failed
Go / build (1.21) (push) Failing after 1m6s
Go / build (1.22) (push) Failing after 1m6s
abandon generic query frag for common structures
Instead of using the QueryFrag struct, which was too generic to be
generally useful, we have moved to a BusEventFilter type, which
contains things we may filter on when we're searching for bus events.
At the moment it just contains names, and start/stop times.
Then in each function we can accept this filter struct and convert
it to fit the query.

We also support general modifiers, and currently have one implemented:
the LimitOffsetModifier. This adds a LIMIT and OFFSET clause to any
statement. these are all applied at the end and receive a stringbuilder
which may prevent certain operations from being structured.
We need to work on this one more, potentially abandoning.
2024-03-01 16:25:33 -06:00
saji a3f6e36cc4 didn't fix the actual error lol
All checks were successful
Go / build (push) Successful in 1m53s
2024-02-28 01:08:28 -06:00
saji d6cd4d3e26 fix tests, add packets stuff for db
Some checks failed
Go / build (push) Failing after 1m45s
2024-02-28 01:07:36 -06:00
saji 3f9df5c1eb wip: add openmct-type historical api 2024-02-17 19:26:13 -06:00
saji 938b5b7000 add import log table (unused) 2024-02-13 10:04:01 -06:00
saji c4bdf122a8 major cleanup/refactor
delete mprpc
move can frame to it's own library
create CANID type (better extended id support)
rework database format, only uses name + json now
busEvent and rawJsonEvent don't store the Id anymore
2024-02-12 09:45:23 -06:00
saji 9280067d87 db migration fixes
- fix offbyone for executing migrations
- fix user_version setter not working
- add one more migration for WIP weather table
2023-07-06 15:21:41 -05:00
saji 63087deffb wip: db migration 2023-07-05 21:16:26 -05:00