github.com/petermattis/pebble@v0.0.0-20190905164901-ab51a2166067/tool/testdata/wal_dump (about)

     1  wal dump
     2  ----
     3  requires at least 1 arg(s), only received 0
     4  
     5  wal dump
     6  ../testdata/db-stage-2/000003.log
     7  ----
     8  ../testdata/db-stage-2/000003.log
     9  0(21) seq=1 count=1
    10      SET(foo,<3>)
    11  28(21) seq=2 count=1
    12      SET(bar,<3>)
    13  56(23) seq=3 count=1
    14      SET(baz,<5>)
    15  86(22) seq=4 count=1
    16      SET(foo,<4>)
    17  115(17) seq=5 count=1
    18      DEL(bar)
    19  EOF
    20  
    21  wal dump
    22  ../testdata/db-stage-4/000006.log
    23  ----
    24  ../testdata/db-stage-4/000006.log
    25  0(22) seq=6 count=1
    26      SET(foo,<4>)
    27  29(22) seq=7 count=1
    28      SET(quux,<3>)
    29  58(17) seq=8 count=1
    30      DEL(baz)
    31  EOF
    32  
    33  wal dump
    34  ../testdata/db-stage-4/000006.log
    35  --key=%x
    36  --value=%x
    37  ----
    38  ../testdata/db-stage-4/000006.log
    39  0(22) seq=6 count=1
    40      SET(666f6f,66697665)
    41  29(22) seq=7 count=1
    42      SET(71757578,736978)
    43  58(17) seq=8 count=1
    44      DEL(62617a)
    45  EOF
    46  
    47  wal dump
    48  ../testdata/db-stage-4/000006.log
    49  --value=quoted
    50  ----
    51  ../testdata/db-stage-4/000006.log
    52  0(22) seq=6 count=1
    53      SET(foo,five)
    54  29(22) seq=7 count=1
    55      SET(quux,six)
    56  58(17) seq=8 count=1
    57      DEL(baz)
    58  EOF