featurebase/ctl
Matthew Jaffee 0f67a0c432 first cut at automatic snapshotting
- had to make sure we don't snapshot until directive is fully applied
on a computer... otherwise there's races between loading the files and
truncating the write log.

- added a dirty bit to resources and a bool return to incrementing the
write log... don't snapshot if it returns false because that means
there's been no writes. (but make sure you close the storage transaction!)

- added the actually snapshotting routine which just fires every
<timeout> and serially snapshots everything.

- tweaked some logging

- added ability to get all tables in an org/db or literally all. I
think I just needed the "literally all", but it was natural to allow
it to be scoped to org or DB as well.

(cherry picked from commit b8b08bc9eb)
2023-01-10 23:26:29 +00: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 Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
backup_tar.go Prevent file corruption when writing tar backup to stdout (#2344) 2023-01-10 23:20:15 +00:00
backup_tar_test.go "fix" backup tar test by just comparing lengths not byte for byte 2023-01-10 23:25:08 +00:00
backup_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
chksum.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
chksum_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
cli.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08: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 Fb 1874 dataframe-csv-loader featurebase subcommand (#2341) 2023-01-10 23:20:15 +00:00
dataframe-csv-loader_test.go Fb 1874 dataframe-csv-loader featurebase subcommand (#2341) 2023-01-10 23:20:15 +00:00
dax.go first cut at automatic snapshotting 2023-01-10 23:26:29 +00:00
doc.go Updated code to latest version for open-sourcing. 2022-09-02 13:23:39 -07:00
export.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08: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 Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
import_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-12-12 09:01:20 -08:00
keygen.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08: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
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 FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-12-12 09:01:20 -08:00
restore_tar.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
restore_tar_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
restore_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
server.go [FB-1822] Change dataframe disk format to Arrow from parquet (#2376) 2023-01-10 23:22:58 +00:00
server_test.go FB-1766: cleaning up the CmdIO objects passing alternate stdin/ 2022-12-12 09:01:20 -08:00
util.go Distinguish between usage errors and other errors 2022-12-12 09:01:20 -08:00