Skip to content

Commit 733b8f7

Browse files
committed
Encoding and decoding of snapshot metadata as CBOR
We also add roundtrip tests for each type in the hierarchy of snapshot metadata.
1 parent 637fec5 commit 733b8f7

File tree

4 files changed

+721
-2
lines changed

4 files changed

+721
-2
lines changed

lsm-tree.cabal

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ library
165165
, base >=4.14 && <4.21
166166
, bitvec ^>=1.1
167167
, bytestring ^>=0.11.4.0 || ^>=0.12.1.0
168+
, cborg ^>=0.2.10.0
168169
, containers ^>=0.6 || ^>=0.7
169170
, contra-tracer ^>=0.2
170171
, crc32c ^>=0.2.1
@@ -366,6 +367,7 @@ test-suite lsm-tree-test
366367
Test.Database.LSMTree.Internal.RunReaders
367368
Test.Database.LSMTree.Internal.Serialise
368369
Test.Database.LSMTree.Internal.Serialise.Class
370+
Test.Database.LSMTree.Internal.Snapshot
369371
Test.Database.LSMTree.Internal.Vector
370372
Test.Database.LSMTree.Internal.Vector.Growing
371373
Test.Database.LSMTree.Model.Table
@@ -387,6 +389,7 @@ test-suite lsm-tree-test
387389
, base
388390
, bitvec
389391
, bytestring
392+
, cborg
390393
, constraints
391394
, containers
392395
, contra-tracer
@@ -425,6 +428,7 @@ test-suite lsm-tree-test
425428
, tasty-hunit
426429
, tasty-quickcheck
427430
, temporary
431+
, text
428432
, these
429433
, transformers
430434
, vector

0 commit comments

Comments
 (0)