项目作者: maxmind

项目描述 :
Create MaxMind DB database files
高级语言: Perl
项目地址: git://github.com/maxmind/MaxMind-DB-Writer-perl.git
创建时间: 2013-07-08T17:18:18Z
项目社区:https://github.com/maxmind/MaxMind-DB-Writer-perl

开源协议:Other

下载


NAME

MaxMind::DB::Writer - DEPRECATED Create MaxMind DB database files

VERSION

version 0.300004

SYNOPSIS

  1. use MaxMind::DB::Writer::Tree;
  2. my %types = (
  3. color => 'utf8_string',
  4. dogs => [ 'array', 'utf8_string' ],
  5. size => 'uint16',
  6. );
  7. my $tree = MaxMind::DB::Writer::Tree->new(
  8. ip_version => 6,
  9. record_size => 24,
  10. database_type => 'My-IP-Data',
  11. languages => ['en'],
  12. description => { en => 'My database of IP data' },
  13. map_key_type_callback => sub { $types{ $_[0] } },
  14. );
  15. $tree->insert_network(
  16. '8.8.8.0/24',
  17. {
  18. color => 'blue',
  19. dogs => [ 'Fido', 'Ms. Pretty Paws' ],
  20. size => 42,
  21. },
  22. );
  23. open my $fh, '>:raw', '/path/to/my-ip-data.mmdb';
  24. $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:

  1. 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

CONTRIBUTORS

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.