- Notifications
You must be signed in to change notification settings - Fork27
Create MaxMind DB database files
License
maxmind/MaxMind-DB-Writer-perl
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
MaxMind::DB::Writer - DEPRECATED Create MaxMind DB database files
version 0.300004
use MaxMind::DB::Writer::Tree;my %types = ( color => 'utf8_string', dogs => [ 'array', 'utf8_string' ], size => 'uint16',);my $tree = MaxMind::DB::Writer::Tree->new( ip_version => 6, record_size => 24, database_type => 'My-IP-Data', languages => ['en'], description => { en => 'My database of IP data' }, map_key_type_callback => sub { $types{ $_[0] } },);$tree->insert_network( '8.8.8.0/24', { color => 'blue', dogs => [ 'Fido', 'Ms. Pretty Paws' ], size => 42, },);open my $fh, '>:raw', '/path/to/my-ip-data.mmdb';$tree->write_tree($fh);This distribution contains the code necessary to writeMaxMind DB databasefiles. SeeMaxMind::DB::Writer::Treefor API docs.
This code is no longer maintained. We recommend using the Gommdbwriter package to writeMMDB files.
If you're running into install errors under Mac OS X, you may need to force abuild of the 64 bit binary. For example, if you're installing viacpanm:
ARCHFLAGS="-arch x86_64" cpanm MaxMind::DB::WriterThis distribution does not currently work on Windows. Reasonable patches forWindows support are very welcome. You will probably need to start by makingMath::Int128 work on Windows, since we use that module's C API for dealingwith 128-bit integers to represent IPv6 addresses numerically.
Please report all issues with this code using the GitHub issue tracker athttps://github.com/maxmind/MaxMind-DB-Writer-perl/issues.
We welcome patches as pull requests against our GitHub repository athttps://github.com/maxmind/MaxMind-DB-Writer-perl.
Bugs may be submitted throughhttps://github.com/maxmind/MaxMind-DB-Writer-perl/issues.
- Olaf Aldersoalders@maxmind.com
- Greg Oschwaldgoschwald@maxmind.com
- Dave Rolskydrolsky@maxmind.com
- Mark Fowlermfowler@maxmind.com
- Colin Watsoncjwatson@debian.org
- Florian Ragwitzrafl@debian.org
- Ilya Melamedilya77@gmail.com
- Jan Bieron <jbieron+github@gmail.com>
- José Joaquín Atriajjatria@gmail.com
- Mark Rgithub@mark.org.il
- Narsimham Chellurinchelluri@users.noreply.github.com
- Nick Logannlogan@maxmind.com
- Thomas J Mathertjmather@maxmind.com
- William Storeywstorey@maxmind.com
This software is copyright (c) 2023 by MaxMind, Inc.
This is free software; you can redistribute it and/or modify it underthe same terms as the Perl 5 programming language system itself.
About
Create MaxMind DB database files
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors14
Uh oh!
There was an error while loading.Please reload this page.