GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MAXMIND::DB::METADATA (3)

.ds Aq ’

NAME

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

CONTENTS

VERSION

version 0.040001

SYNOPSIS



    my $reader = MaxMind::DB::Reader->new( file => $path );
    my $metadata = $reader->metadata();

    print $metadata->description()->{en};



DESCRIPTION

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

API

This class provides methods for each metadata attribute in a database.

CW$metadata->binary_format_major_version()

Returns the binary format major version number.

CW$metadata->binary_format_minor_version()

Returns the binary format minor version number.

CW$metadata->build_epoch()

Returns the database’s build timestamp as an epoch value.

CW$metadata->database_type()

Returns a string indicating the database’s type.

CW$metadata->languages()

Returns an arrayref of locale codes indicating what languages this database has information for.

CW$metadata->description()

Returns a hashref of descriptions. The keys should be locale codes like en or pt-BR and the values are the description in that language.

CW$metadata->ip_version()

Returns a 4 or 6 indicating what type of IP addresses this database can be used to look up.

CW$metadata->node_count()

Returns the number of nodes in the database’s search tree.

CW$metadata->record_size()

Returns the record size for nodes in the database’s search tree.

AUTHORS

o Dave Rolsky <drolsky@maxmind.com>
o Olaf Alders <oalders@maxmind.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2016 by MaxMind, Inc..

This is free software, licensed under:



  The Artistic License 2.0 (GPL Compatible)



Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MAXMIND::DB::METADATA (3) 2016-02-02

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.