1MaxMind::DB::Metadata(3U)ser Contributed Perl DocumentatiMoanxMind::DB::Metadata(3)
2
3
4

NAME

6       MaxMind::DB::Metadata - A class for metadata related to a MaxMind DB
7       database
8

VERSION

10       version 0.040001
11

SYNOPSIS

13           my $reader = MaxMind::DB::Reader->new( file => $path );
14           my $metadata = $reader->metadata();
15
16           print $metadata->description()->{en};
17

DESCRIPTION

19       This class provides an API for representing the metadata of a MaxMind
20       DB database. See http://maxmind.github.io/MaxMind-DB/ for the official
21       format spec.
22

API

24       This class provides methods for each metadata attribute in a database.
25
26   $metadata->binary_format_major_version()
27       Returns the binary format major version number.
28
29   $metadata->binary_format_minor_version()
30       Returns the binary format minor version number.
31
32   $metadata->build_epoch()
33       Returns the database's build timestamp as an epoch value.
34
35   $metadata->database_type()
36       Returns a string indicating the database's type.
37
38   $metadata->languages()
39       Returns an arrayref of locale codes indicating what languages this
40       database has information for.
41
42   $metadata->description()
43       Returns a hashref of descriptions. The keys should be locale codes like
44       "en" or "pt-BR" and the values are the description in that language.
45
46   $metadata->ip_version()
47       Returns a 4 or 6 indicating what type of IP addresses this database can
48       be used to look up.
49
50   $metadata->node_count()
51       Returns the number of nodes in the database's search tree.
52
53   $metadata->record_size()
54       Returns the record size for nodes in the database's search tree.
55

AUTHORS

57       •   Dave Rolsky <drolsky@maxmind.com>
58
59       •   Olaf Alders <oalders@maxmind.com>
60
62       This software is Copyright (c) 2016 by MaxMind, Inc..
63
64       This is free software, licensed under:
65
66         The Artistic License 2.0 (GPL Compatible)
67
68
69
70perl v5.34.0                      2021-07-22          MaxMind::DB::Metadata(3)
Impressum