|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| bench/ | H | 10-Jul-2018 | - | 119 | 92 |
| c/ | H | 10-Jul-2018 | - | 11,968 | 6,663 |
| dev-bin/ | H | 10-Jul-2018 | - | 8 | 4 |
| eg/ | H | 10-Jul-2018 | - | 94 | 74 |
| inc/ | H | 03-May-2022 | - | 2,992 | 1,448 |
| lib/MaxMind/DB/ | H | 03-May-2022 | - | 2,325 | 1,217 |
| t/ | H | 10-Jul-2018 | - | 16,125 | 15,177 |
| xt/ | H | 03-May-2022 | - | 432 | 355 |
| Build.PL | H A D | 10-Jul-2018 | 5 KiB | 186 | 153 |
| CONTRIBUTING.md | H A D | 10-Jul-2018 | 4.2 KiB | 134 | 88 |
| Changes | H A D | 10-Jul-2018 | 8.9 KiB | 290 | 176 |
| INSTALL | H A D | 10-Jul-2018 | 1.6 KiB | 58 | 36 |
| LICENSE | H A D | 10-Jul-2018 | 17.9 KiB | 380 | 292 |
| MANIFEST | H A D | 10-Jul-2018 | 2.8 KiB | 96 | 95 |
| META.json | H A D | 10-Jul-2018 | 35.7 KiB | 1,070 | 1,068 |
| META.yml | H A D | 10-Jul-2018 | 22.8 KiB | 795 | 794 |
| README.md | H A D | 10-Jul-2018 | 2.8 KiB | 92 | 64 |
| cpanfile | H A D | 10-Jul-2018 | 2.9 KiB | 95 | 89 |
| dist.ini | H A D | 10-Jul-2018 | 740 | 33 | 29 |
| perlcriticrc | H A D | 10-Jul-2018 | 1.9 KiB | 71 | 49 |
| perltidyrc | H A D | 10-Jul-2018 | 216 | 13 | 12 |
| tidyall.ini | H A D | 10-Jul-2018 | 1.1 KiB | 52 | 47 |
| valgrind.supp | H A D | 10-Jul-2018 | 12.1 KiB | 606 | 583 |
README.md
1# NAME
2
3MaxMind::DB::Writer - Create MaxMind DB database files
4
5# VERSION
6
7version 0.300003
8
9# SYNOPSIS
10
11 use MaxMind::DB::Writer::Tree;
12
13 my %types = (
14 color => 'utf8_string',
15 dogs => [ 'array', 'utf8_string' ],
16 size => 'uint16',
17 );
18
19 my $tree = MaxMind::DB::Writer::Tree->new(
20 ip_version => 6,
21 record_size => 24,
22 database_type => 'My-IP-Data',
23 languages => ['en'],
24 description => { en => 'My database of IP data' },
25 map_key_type_callback => sub { $types{ $_[0] } },
26 );
27
28 $tree->insert_network(
29 '8.8.8.0/24',
30 {
31 color => 'blue',
32 dogs => [ 'Fido', 'Ms. Pretty Paws' ],
33 size => 42,
34 },
35 );
36
37 open my $fh, '>:raw', '/path/to/my-ip-data.mmdb';
38 $tree->write_tree($fh);
39
40# DESCRIPTION
41
42This distribution contains the code necessary to write [MaxMind DB database
43files](http://maxmind.github.io/MaxMind-DB/). See [MaxMind::DB::Writer::Tree](https://metacpan.org/pod/MaxMind::DB::Writer::Tree)
44for API docs.
45
46# MAC OS X SUPPORT
47
48If you're running into install errors under Mac OS X, you may need to force a
49build of the 64 bit binary. For example, if you're installing via `cpanm`:
50
51 ARCHFLAGS="-arch x86_64" cpanm MaxMind::DB::Writer
52
53# WINDOWS SUPPORT
54
55This distribution does not currently work on Windows. Reasonable patches for
56Windows support are very welcome. You will probably need to start by making
57[Math::Int128](https://metacpan.org/pod/Math::Int128) work on Windows, since we use that module's C API for dealing
58with 128-bit integers to represent IPv6 addresses numerically.
59
60# SUPPORT
61
62Please report all issues with this code using the GitHub issue tracker at
63[https://github.com/maxmind/MaxMind-DB-Writer-perl/issues](https://github.com/maxmind/MaxMind-DB-Writer-perl/issues).
64
65We welcome patches as pull requests against our GitHub repository at
66[https://github.com/maxmind/MaxMind-DB-Writer-perl](https://github.com/maxmind/MaxMind-DB-Writer-perl).
67
68Bugs may be submitted through [https://github.com/maxmind/MaxMind-DB-Writer-perl/issues](https://github.com/maxmind/MaxMind-DB-Writer-perl/issues).
69
70# AUTHORS
71
72- Olaf Alders <oalders@maxmind.com>
73- Greg Oschwald <goschwald@maxmind.com>
74- Dave Rolsky <drolsky@maxmind.com>
75- Mark Fowler <mfowler@maxmind.com>
76
77# CONTRIBUTORS
78
79- Florian Ragwitz <rafl@debian.org>
80- Ilya Melamed <ilya77@gmail.com>
81- Jan Bieron <jbieron+github@gmail.com>
82- Narsimham Chelluri <nchelluri@users.noreply.github.com>
83- Thomas J Mather <tjmather@maxmind.com>
84- William Storey <wstorey@maxmind.com>
85
86# COPYRIGHT AND LICENSE
87
88This software is copyright (c) 2018 by MaxMind, Inc.
89
90This is free software; you can redistribute it and/or modify it under
91the same terms as the Perl 5 programming language system itself.
92