/
Depends on
- libdata-dumper-concise-perl (libdata-dumper-concise-perl)
- libdata-ieee754-perl (libdata-ieee754-perl)
- libdata-printer-perl (libdata-printer-perl)
- libdevel-refcount-perl (libdevel-refcount-perl)
- libencode-perl (libencode-perl)
- libgraphviz2-perl (libgraphviz2-perl)
- libjson-perl (libjson-perl)
- liblist-allutils-perl (liblist-allutils-perl)
- libmath-int128-perl (libmath-int128-perl)
- libmath-int64-perl (libmath-int64-perl)
- libmaxmind-db-common-perl (libmaxmind-db-common-perl)
- libmaxmind-db-reader-perl (libmaxmind-db-reader-perl)
- libmodule-build-perl (libmodule-build-perl)
- libscalar-list-utils-perl (libscalar-list-utils-perl)
- libsereal-decoder-perl (libsereal-decoder-perl)
- libsereal-encoder-perl (libsereal-encoder-perl)
- libtest-bits-perl (libtest-bits-perl)
- libtest-deep-perl (libtest-deep-perl)
- libtest-fatal-perl (libtest-fatal-perl)
- libtest-hexdifferences-perl (libtest-hexdifferences-perl)
- libtest-requires-perl (libtest-requires-perl)
- libtest-simple-perl (libtest-simple-perl)
- libtest-warnings-perl (libtest-warnings-perl)
- perl (perl, perl-xs-dev)
- debhelper-compat, libmoose-perl, libmoosex-params-validate-perl, libmoosex-strictconstructor-perl, libnamespace-autoclean-perl, libnet-works-perl
README (full)
NAME
MaxMind::DB::Writer - DEPRECATED Create MaxMind DB database files
VERSION
version 0.300004
SYNOPSIS
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);
DESCRIPTION
This distribution contains the code necessary to write MaxMind DB database files. See MaxMind::DB::Writer::Tree for API docs.
DEPRECATED
This code is no longer maintained. We recommend using the Go mmdbwriter package to write MMDB files.
MAC OS X SUPPORT
If you're running into install errors under Mac OS X, you may need to force a
build of the 64 bit binary. For example, if you're installing via cpanm:
ARCHFLAGS="-arch x86_64" cpanm MaxMind::DB::Writer
WINDOWS SUPPORT
This distribution does not currently work on Windows. Reasonable patches for Windows support are very welcome. You will probably need to start by making Math::Int128 work on Windows, since we use that module's C API for dealing with 128-bit integers to represent IPv6 addresses numerically.
SUPPORT
Please report all issues with this code using the GitHub issue tracker at https://github.com/maxmind/MaxMind-DB-Writer-perl/issues.
We welcome patches as pull requests against our GitHub repository at https://github.com/maxmind/MaxMind-DB-Writer-perl.
Bugs may be submitted through https://github.com/maxmind/MaxMind-DB-Writer-perl/issues.
AUTHORS
- Olaf Alders [email protected]
- Greg Oschwald [email protected]
- Dave Rolsky [email protected]
- Mark Fowler [email protected]
CONTRIBUTORS
- Colin Watson [email protected]
- Florian Ragwitz [email protected]
- Ilya Melamed [email protected]
- Jan Bieron <[email protected]>
- José Joaquín Atria [email protected]
- Mark R [email protected]
- Narsimham Chelluri [email protected]
- Nick Logan [email protected]
- Thomas J Mather [email protected]
- William Storey [email protected]
COPYRIGHT AND LICENSE
This software is copyright (c) 2023 by MaxMind, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
| dir | bench/ |
| dir | c/ |
| dir | debian/ |
| dir | dev-bin/ |
| dir | eg/ |
| dir | inc/ |
| dir | lib/ |
| dir | t/ |
| dir | xt/ |
| file | Build.PL |
| file | CONTRIBUTING.md |
| file | Changes |
| file | INSTALL |
| file | LICENSE |
| file | MANIFEST |
| file | META.json |
| file | META.yml |
| file | README.md |
| file | cpanfile |
| file | dist.ini |
| file | perlcriticrc |
| file | perltidyrc |
| file | tidyall.ini |
| file | valgrind.supp |