1
1
mirror of https://github.com/wader/fq.git synced 2024-11-26 10:33:53 +03:00
Commit Graph

18 Commits

Author SHA1 Message Date
bump
2c38cf1324 Update github-golangci-lint to 1.60.1 from 1.59.1
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.60.1

Require go 1.21 and fix various lint warnings and use new features
2024-08-14 20:05:40 +02:00
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
Mattias Wadman
bf7fa07c41 fq: Use go 1.20 and cleanup
Also rename *ex packages to *x
2024-04-01 19:14:10 +02:00
Michael B.
08e3d2d2a6 leveldb: improve stringify by preallocating result 2023-12-09 15:23:45 +01: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.
e826f097d3 leveldb: fix Errorf arguments 2023-12-09 11:31:44 +01:00
Michael B.
07ad9401a4 leveldb: rename "suffix" to "sequence_number_suffix" 2023-12-09 08:51:54 +01:00
Michael B.
e735ceadf1 leveldb: propagate error 2023-12-09 08:45:45 +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.
fe1099b95d leveldb: updates per PR comments 2023-12-06 23:22:32 +01:00
Michael B.
2df0f0fbcf leveldb: add log and descriptor decoders 2023-12-06 19:24:49 +01:00
Michael B.
78a3e94bd7 leveldb: rename functions and add comments 2023-12-05 16:33:50 +01:00
Michael B.
b05aa997ab leveldb: address PR comments 2023-12-05 11:31:30 +01:00