Skip to content

Commit af0b33f

Browse files
authored
Merge pull request #91 from maxmind/greg/eng-1454-mmdbinspect-is-easier-to-use-for-historical-database
Prepare for v2
2 parents cfc6ceb + 9bf3c2b commit af0b33f

File tree

12 files changed

+880
-572
lines changed

12 files changed

+880
-572
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/cover.*.gcov
22
/cover.*.lcov
3-
/dist/**
3+
/cmd/mmdbinspect/mmdbinspect
4+
/dist/**

CHANGELOG.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,27 @@
22

33
## 2.0.0
44

5-
* Upgrade to `github.com/oschwald/maxminddb-golang/v2`. This is a breaking
6-
API change, but should not affect the use of the program.
5+
* The default output format is now YAML. This was done to improve the
6+
readability when using the tool as a standalone utility for doing lookups
7+
in an MMDB database. Use the `-jsonl` flag to output as JSONL instead.
8+
* When outputting as JSON, we now use JSONL. There is one JSON object per
9+
line.
10+
* The output format has been flattened. Each record that is output now
11+
contains the following keys: `database_path`, `requested_lookup`,
12+
`network`, and `record`. This allows for efficient streaming of large
13+
lookups, makes the key naming more consistent, and reduces the depth of
14+
the data structure.
15+
* You may now use a glob for the `-db` argument. If there are multiple
16+
matches, it will be treated as if multiple `-db` arguments were provided.
17+
Note that you must quote the parameter when using globs to prevent the
18+
shell's globbing from interfering. See the [pattern syntax](https://pkg.go.dev/path#Match)
19+
* The following flags were added:
20+
* `-include-networks-without-data` - include networks without any data in
21+
the database in the output.
22+
* `-include-build-time` - include the build time from the database's
23+
metadata in the output.
24+
* This repo no longer provides a public Go API. It is only intended to be
25+
used as a CLI program.
726

827
## 0.2.0 (2024-01-10)
928

0 commit comments

Comments
 (0)