Commit graph

7 commits

Author SHA1 Message Date
saji 00fa67a67d migrate websocket api to buseventfilter
All checks were successful
Go / build (1.22) (push) Successful in 1m13s
Go / build (1.21) (push) Successful in 2m31s
2024-03-02 21:23:35 -06:00
saji 7aaa47e142 fix missing error check, improve get test
All checks were successful
Go / build (1.21) (push) Successful in 1m18s
Go / build (1.22) (push) Successful in 1m17s
2024-03-01 16:33:30 -06:00
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 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 6eedae18c6 fix db test compile issue 2023-07-04 00:50:43 -05:00
saji fcfc605f77 fix db test compile issue 2023-07-03 13:56:42 -05:00
saji 699cfb5e3d big update 2023-06-30 11:51:06 -05:00
Renamed from db_test.go (Browse further)