featurebase/dax/server
Matthew Jaffee 8fe73146c8
Sqldb rip boltdb (#2341)
* serverless sqldb use same env for test config as normal

* rip boltdb implementation of controller backend out

it was replaced by postgres and no longer works properly.

This involved migrating a number of tests which only worked with
boltdb, which exposed several ways in which the postgres
implementation had slightly different behavior from the bolt
one:
1. ordering of results in some cases, and
2. (more importantly) erroring when a record to delete was not
found. The bolt implementation silently ignored it when things to
delete weren't found, so we make some changes to match that behavior.

Also stopped propagating CreatedAt and UpdatedAt from DB tables into
dax types. These were breaking existing tests. Perhaps it would be
better to actually use them, but for now they will only exist at the
DB level.

This change set also moves the insertion of the directive_versions
record out of migrations and into the startup/connection code. Having
this in the migrations was a bit ugly because you couldn't just
truncate all the tables and have everything work from
scratch. Inserting it during startup is fairly innocuous, and will
just continue on if it already exists.

* update directive_version test

I changed the initial value to 0 so that the first version that gets
sent out is 1
2023-03-22 08:54:13 -05:00
..
test Sqldb rip boltdb (#2341) 2023-03-22 08:54:13 -05:00
config.go Cloud 1358 bolt postgres (#2286) 2023-03-20 09:02:22 -05:00
dup.go Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
dup_arm64.go Add DAX - full list of squashed commits below 2022-12-12 09:01:20 -08:00
server.go tweak a bunch of logging and config (#2234) 2023-02-03 14:59:07 -06:00