NAME
Net::FileMaker::XML::Database
SYNOPSIS
This module handles all the tasks with XML data. Don't call this module directly, instead use Net::FileMaker::XML.
use Net::FileMaker::XML;
my $fm = Net::FileMaker::XML->new(host => $host);
my $db = $fm->database(db => $db, user => $user, pass => $pass);
my $layouts = $db->layoutnames;
my $scripts = $db->scriptnames;
my $records = $db->findall( layout => $layout, params => { '-max' => '10'});
my $records = $db->findany( layout => $layout, params => { '-skip' => '10'});
METHODS
layoutnames
Returns an arrayref containing layouts accessible for the respective database.
scriptnames
Returns an arrayref containing scripts accessible for the respective database.
find(layout => $layout, params => { parameters })
Returns a hashref of rows on a specific database and layout.
findall(layout => $layout, params => { parameters }, nocheck => 1)
Returns all rows on a specific database and layout.
nocheck is an optional argument that will skip checking of parameters if set to 1.
findany(layout => $layout, params => { parameters }, nocheck => 1)
Returns a hashref of random rows on a specific database and layout.
nocheck is an optional argument that will skip checking of parameters if set to 1.
total_rows(layout => $layout)
Returns a scalar with the total rows for a given layout.