syncthing/lib/db
Jakob Borg c08024ebb8
lib/db: Add db and test with invalid files (#4954)
This adds a couple of utilities for transporting databases in JSON and a
test to load a database and verify a couple of invalid bits. The test
itself is quite pointless at the moment, but it lays the groundwork for
testing the migration of this data in the next step (after the invalid
bit should be changed to local flags for local files).

When that happens we need to have a database in the old format already
there in order to be able to test the migration.
2018-05-16 08:44:08 +02:00
..
testdata lib/db: Add db and test with invalid files (#4954) 2018-05-16 08:44:08 +02:00
.gitignore Change DB label format (index folders, devices) 2016-01-03 19:32:40 +01:00
benchmark_test.go lib/db: Fix benchmarks 2018-01-28 11:26:01 +00:00
blockmap_test.go lib/model: Verify request content against weak (and possibly strong) hash (#4767) 2018-05-05 10:24:44 +02:00
blockmap.go lib/model: Verify request content against weak (and possibly strong) hash (#4767) 2018-05-05 10:24:44 +02:00
concurrency_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
debug.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
leveldb_dbinstance.go lib/db: Actually delete the correct sequence prefix 2018-05-09 12:06:29 +02:00
leveldb_test.go lib/db: Add db and test with invalid files (#4954) 2018-05-16 08:44:08 +02:00
leveldb_transactions.go lib/db, lib/model: Add sequence->deviceKey to db for sending indexes (#4906) 2018-05-01 23:39:15 +02:00
leveldb.go lib/db, lib/model: Add sequence->deviceKey to db for sending indexes (#4906) 2018-05-01 23:39:15 +02:00
meta.go lib/db: Don't panic on negative counts (#4761) 2018-02-14 11:25:34 +01:00
namespaced_test.go lib/db: Fix test for Go 1.9's smarter time.Time values 2017-06-28 14:36:04 +02:00
namespaced.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
set_test.go lib/db, lib/model: Add sequence->deviceKey to db for sending indexes (#4906) 2018-05-01 23:39:15 +02:00
set.go lib/db, lib/model: Add sequence->deviceKey to db for sending indexes (#4906) 2018-05-01 23:39:15 +02:00
structs.go all: Implement variable sized blocks (fixes #4807) 2018-04-16 19:08:50 +01:00
structs.pb.go all: Implement variable sized blocks (fixes #4807) 2018-04-16 19:08:50 +01:00
structs.proto all: Implement variable sized blocks (fixes #4807) 2018-04-16 19:08:50 +01:00
util_test.go lib/db: Add db and test with invalid files (#4954) 2018-05-16 08:44:08 +02:00