Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add json export of mmdb metadata #181

Closed
jhg03a opened this issue Jun 28, 2022 · 2 comments
Closed

Add json export of mmdb metadata #181

jhg03a opened this issue Jun 28, 2022 · 2 comments

Comments

@jhg03a
Copy link

jhg03a commented Jun 28, 2022

I'd like to see a new -meta CLI arg to simply print the mmdb metadata on disk. This allows for greater control over consuming services by leveraging the built in timestamp of the mmdb rather than dealing with exit codes or file mtime. While my current example really only cares about one field from the metadata, it is conceivable other pieces might be relevant to someone. Additionally it's trivial to use tools like ansible or jq to extract the one piece of data from the json I care about. If there's enough support though just having a -publishedTime or something along those lines just for the timestamp could simplify things for others. This would fall in line with similar asks for better control mechanisms like #25.

@jhg03a
Copy link
Author

jhg03a commented Jun 28, 2022

It is possible to do things this way as it is by using a separate mmdb reader application, but I think this is a small enough ask for a big gain.

@oschwald
Copy link
Member

I don't think we are likely to do this. It seems somewhat orthogonal to what this package does. It currently doesn't import a database reader and cannot read the metadata from the files. I think it would be best to use a separate tool for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants