gotelem/internal/db
saji 68347e8b95
Some checks failed
Go / build (1.21) (push) Failing after 1m6s
Go / build (1.22) (push) Failing after 1m6s
rework DB getters
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
..
migrations rework DB getters 2024-03-01 16:25:33 -06:00
db.go rework DB getters 2024-03-01 16:25:33 -06:00
db_test.go rework DB getters 2024-03-01 16:25:33 -06:00
getters.go rework DB getters 2024-03-01 16:25:33 -06:00
migration.go fix tests, add packets stuff for db 2024-02-28 01:07:36 -06:00
migration_test.go db migration fixes 2023-07-06 15:21:41 -05:00
packets.go fix tests, add packets stuff for db 2024-02-28 01:07:36 -06:00