Skip to content

Commit

Permalink
WIP: sqlite3: Add decoder
Browse files Browse the repository at this point in the history
See sqlite3.{go,jq} for TODO

Related to #27
  • Loading branch information
wader committed Feb 14, 2022
1 parent ba94821 commit 526ce6f
Show file tree
Hide file tree
Showing 37 changed files with 2,486 additions and 1,970 deletions.
1 change: 1 addition & 0 deletions format/all/all.fqtest
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ $ fq -n _registry.groups.probe
"pcap",
"pcapng",
"png",
"sqlite3",
"tar",
"tiff",
"webp",
Expand Down
1 change: 1 addition & 0 deletions format/all/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
_ "github.com/wader/fq/format/png"
_ "github.com/wader/fq/format/protobuf"
_ "github.com/wader/fq/format/raw"
_ "github.com/wader/fq/format/sqlite3"
_ "github.com/wader/fq/format/tar"
_ "github.com/wader/fq/format/tiff"
_ "github.com/wader/fq/format/vorbis"
Expand Down
32 changes: 16 additions & 16 deletions format/dns/testdata/cern-rsp.fqtest
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@ $ fq -d dns dv /cern-rsp
| | | value: "www.cern.ch" 0x19-NA (0)
| | | cname{}: 0x10-0x33.7 (36)
| | | labels[0:4]: 0x10-0x33.7 (36)
| | | [0]{}: label 0x10-0x33.7 (36)
| | | [0]{}: label 0x29-0x31.7 (9)
0x20| 08 | . | length: 8 0x29-0x29.7 (1)
0x20| 77 65 62 72 6c 62| webrlb| value: "webrlb02" 0x2a-0x31.7 (8)
0x30|30 32 |02 |
| | | [1]{}: label 0x10-0x33.7 (36)
0x10|04 |. | length: 4 0x10-0x10.7 (1)
0x10| 63 65 72 6e | cern | value: "cern" 0x11-0x14.7 (4)
0x30| c0 | . | is_pointer: 3 0x32-0x32.1 (0.2)
0x30| c0 10 | .. | pointer: 16 0x32.2-0x33.7 (1.6)
| | | [1]{}: label 0x15-0x17.7 (3)
| | | [2]{}: label 0x15-0x17.7 (3)
0x10| 02 | . | length: 2 0x15-0x15.7 (1)
0x10| 63 68 | ch | value: "ch" 0x16-0x17.7 (2)
| | | [2]{}: label 0x18-0x18.7 (1)
| | | [3]{}: label 0x18-0x18.7 (1)
0x10| 00 | . | length: 0 0x18-0x18.7 (1)
| | | [3]{}: label 0x29-0x31.7 (9)
0x20| 08 | . | length: 8 0x29-0x29.7 (1)
0x20| 77 65 62 72 6c 62| webrlb| value: "webrlb02" 0x2a-0x31.7 (8)
0x30|30 32 |02 |
| | | value: "webrlb02.cern.ch" 0x19-NA (0)
0x10| 00| .| type: "CNAME" (5) 0x1f-0x20.7 (2)
0x20|05 |. |
Expand All @@ -75,22 +75,22 @@ $ fq -d dns dv /cern-rsp
| | | [1]{}: answer 0x10-0x4f.7 (64)
| | | name{}: 0x10-0x35.7 (38)
| | | labels[0:4]: 0x10-0x35.7 (38)
| | | [0]{}: label 0x10-0x33.7 (36)
| | | [0]{}: label 0x29-0x35.7 (13)
0x20| 08 | . | length: 8 0x29-0x29.7 (1)
0x20| 77 65 62 72 6c 62| webrlb| value: "webrlb02" 0x2a-0x31.7 (8)
0x30|30 32 |02 |
0x30| c0 | . | is_pointer: 3 0x34-0x34.1 (0.2)
0x30| c0 29 | .) | pointer: 41 0x34.2-0x35.7 (1.6)
| | | [1]{}: label 0x10-0x33.7 (36)
0x10|04 |. | length: 4 0x10-0x10.7 (1)
0x10| 63 65 72 6e | cern | value: "cern" 0x11-0x14.7 (4)
0x30| c0 | . | is_pointer: 3 0x32-0x32.1 (0.2)
0x30| c0 10 | .. | pointer: 16 0x32.2-0x33.7 (1.6)
| | | [1]{}: label 0x15-0x17.7 (3)
| | | [2]{}: label 0x15-0x17.7 (3)
0x10| 02 | . | length: 2 0x15-0x15.7 (1)
0x10| 63 68 | ch | value: "ch" 0x16-0x17.7 (2)
| | | [2]{}: label 0x18-0x18.7 (1)
| | | [3]{}: label 0x18-0x18.7 (1)
0x10| 00 | . | length: 0 0x18-0x18.7 (1)
| | | [3]{}: label 0x29-0x35.7 (13)
0x20| 08 | . | length: 8 0x29-0x29.7 (1)
0x20| 77 65 62 72 6c 62| webrlb| value: "webrlb02" 0x2a-0x31.7 (8)
0x30|30 32 |02 |
0x30| c0 | . | is_pointer: 3 0x34-0x34.1 (0.2)
0x30| c0 29 | .) | pointer: 41 0x34.2-0x35.7 (1.6)
| | | value: "webrlb02.cern.ch" 0x19-NA (0)
0x30| 00 1c | .. | type: "AAAA" (28) 0x36-0x37.7 (2)
0x30| 00 01 | .. | class: "IN" (1) (Internet) 0x38-0x39.7 (2)
Expand Down
Loading

0 comments on commit 526ce6f

Please sign in to comment.