• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

bench/H10-Jul-2018-11992

c/H10-Jul-2018-11,9686,663

dev-bin/H10-Jul-2018-84

eg/H10-Jul-2018-9474

inc/H03-May-2022-2,9921,448

lib/MaxMind/DB/H03-May-2022-2,3251,217

t/H10-Jul-2018-16,12515,177

xt/H03-May-2022-432355

Build.PLH A D10-Jul-20185 KiB186153

CONTRIBUTING.mdH A D10-Jul-20184.2 KiB13488

ChangesH A D10-Jul-20188.9 KiB290176

INSTALLH A D10-Jul-20181.6 KiB5836

LICENSEH A D10-Jul-201817.9 KiB380292

MANIFESTH A D10-Jul-20182.8 KiB9695

META.jsonH A D10-Jul-201835.7 KiB1,0701,068

META.ymlH A D10-Jul-201822.8 KiB795794

README.mdH A D10-Jul-20182.8 KiB9264

cpanfileH A D10-Jul-20182.9 KiB9589

dist.iniH A D10-Jul-2018740 3329

perlcriticrcH A D10-Jul-20181.9 KiB7149

perltidyrcH A D10-Jul-2018216 1312

tidyall.iniH A D10-Jul-20181.1 KiB5247

valgrind.suppH A D10-Jul-201812.1 KiB606583

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 &lt;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