featurebase/ctl
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
..
testdata FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-12-12 09:01:20 -08:00
auth_token.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
auth_token_internal_test.go write header before body 2022-12-12 09:01:20 -08:00
backup.go Linters! (#2314) 2023-03-10 15:13:15 -06:00
backup_tar.go Linters! (#2314) 2023-03-10 15:13:15 -06:00
backup_tar_test.go resolve go vet errors related to redeclares 2023-01-12 20:32:49 +00:00
backup_test.go Linters! (#2314) 2023-03-10 15:13:15 -06:00
chksum.go actually yield checksums to caller 2023-03-01 12:48:00 -06:00
chksum_test.go actually yield checksums to caller 2023-03-01 12:48:00 -06:00
common.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
config.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
config_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-12-12 09:01:20 -08:00
dataframe-csv-loader.go Enable linter: stylecheck (#2317) 2023-03-14 08:45:18 -05:00
dataframe-csv-loader_test.go string support for dataframe (#2405) 2023-01-19 21:51:16 +00:00
dax.go Sqldb rip boltdb (#2341) 2023-03-22 08:54:13 -05:00
doc.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
export.go Linters! (#2314) 2023-03-10 15:13:15 -06:00
export_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
generate_config.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
generate_config_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
import.go Linters! (#2314) 2023-03-10 15:13:15 -06:00
import_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-12-12 09:01:20 -08:00
keygen.go Enable linter: stylecheck (#2317) 2023-03-14 08:45:18 -05:00
keygen_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
main_test.go Updated dependency paths to reflect new repo location 2022-09-06 09:39:22 -07:00
parquet-info.go Linters! (#2314) 2023-03-10 15:13:15 -06:00
presort.go Fix pre sort cmd (#2222) 2023-01-25 11:01:58 -06:00
presort_test.go Fix pre sort cmd (#2222) 2023-01-25 11:01:58 -06:00
rbf_check.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
rbf_check_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
rbf_dump.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
rbf_dump_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
rbf_page.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
rbf_page_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
rbf_pages.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
rbf_pages_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
restore.go Linters! (#2314) 2023-03-10 15:13:15 -06:00
restore_tar.go Enable linter: stylecheck (#2317) 2023-03-14 08:45:18 -05:00
restore_tar_test.go Linters! (#2314) 2023-03-10 15:13:15 -06:00
restore_test.go Linters! (#2314) 2023-03-10 15:13:15 -06:00
server.go this now prints a message 2023-03-01 21:43:53 -08:00
server_test.go Fb 1975 (#2254) 2023-02-17 13:50:45 -06:00
util.go Linters! (#2314) 2023-03-10 15:13:15 -06:00