NAME

Geo::GPS::Data::Storage::MySQL - MySQL storage module for the perl-GPSData package.

SYNOPSIS

use Geo::GPS::Data::Storage::MySQL;

my %href = (
  database => 'gpsdata',
  host => 'localhost',
  username => 'gpsuser',
  password => 'mypasswd'
);
my $d = Geo::GPS::Data->new([\%href]);
$m = Geo::GPS::Data::Storage::MySQL->new();

$waypt_types = $m->waypoint_types();

$id = $m->store_waypoint({
      name=>$name,
      latitude=>$lat,
      longitude=>$lon,
      comment=>$comm,
      type_id=>$type_id,
      date_collected=>$d_col,
      ellipsoid=>$ell_id
      });

$res = retrieve_waypoint({id=>$id});
$res = delete_waypoint({id=>$id});

DESCRIPTION

This is an internal module of the perl-GPSData package and should not be used directly by a program. This module implements the storage methods on a mysql database.

AUTHOR

Nuno Nunes, <nfmnunes@cpan.org>

SEE ALSO

Geo::GPS::Data, Geo::GPS::Data::Waypoint.