1
1
mirror of https://github.com/wader/fq.git synced 2024-11-29 23:27:12 +03:00
Commit Graph

11 Commits

Author SHA1 Message Date
Mattias Wadman
c8f9cdc9d7 interp: Add string_truncate option
Was hardcoded to 50, now confiugurable also used affected by dd, dv etc
2024-04-08 17:45:10 +02:00
Michael B.
2f5f183106 leveldb: decode unfragmented .log files further; fix UTF8 decoding
decode unfragmented .log files:

 - break leveldb_log.go into leveldb_log_blocks.go and leveldb_log.go;
   the former is used by both .MANIFEST (descriptor) and .LOG.
 - in leveldb_log, introduce readBatch that decodes further

 fix UTF8 decoding:

 - introduce fieldUTF8ReturnBytes and stringify to handle multi-byte
   UTF8-encodings correctly.
2023-12-09 14:13:33 +01:00
Michael B.
07ad9401a4 leveldb: rename "suffix" to "sequence_number_suffix" 2023-12-09 08:51:54 +01:00
Michael B.
8665df56e8 leveldb: fix table's data blocks' internal keys decoding
In the LevelDB encoding, the internal key can be cut at any byte:
including the user_key, type, or sequence_number. The resulting prefix
is shared among subsequent keys and not specified explicitly by them.

This fixes a previous mistaken belief that cuts can't happen in the
last 8 bytes of the type & sequence number.

Tests are added.
2023-12-08 23:37:10 +01:00
Michael B.
287ed366f6 leveldb: fix metaindex keys, refactoring, and jq syntax per PR 2023-12-07 17:11:55 +01:00
Michael B.
3a396e156e leveldb: improve log documentation 2023-12-07 14:36:47 +01:00
Michael B.
1ba8dec56c leveldb: in some properties, change spaces to underscores 2023-12-07 13:03:53 +01:00
Michael B.
cc0d5a8b9b leveldb: update docs 2023-12-07 13:02:55 +01:00
Michael B.
41f27a13c1 leveldb: add torepr for descriptor 2023-12-07 12:43:55 +01:00
Michael B.
2df0f0fbcf leveldb: add log and descriptor decoders 2023-12-06 19:24:49 +01:00
Michael B.
b05aa997ab leveldb: address PR comments 2023-12-05 11:31:30 +01:00