Net::FileMaker::XML::Database(3)

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 Net::FileMaker::XML::ResultSet for a specific database and layout.

  findall(layout => $layout, params => { parameters }, nocheck => 1)
Returns a Net::FileMaker::XML::ResultSet of 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 Net::FileMaker::XML::ResultSet of random rows on a specific database and layout. "nocheck" is an optional argument that will skip checking of parameters if set to 1.

  edit(layout => $layout , recid => $recid , params => { params })
Updates the row with the fieldname/value pairs passed to params. Returns a Net::FileMaker::XML::ResultSet object.

  remove(layout => $layout , recid => $recid , params => { params })
Deletes the record with that specific record id and returns a Net::FileMaker::XML::ResultSet object.

  insert(layout => $layout , recid => $recid , params => { params })
Creates a new record and populates that record with the fieldname/value pairs passed to params.

Returns an Net::FileMaker::XML::ResultSet object.

  total_rows(layout => $layout)
Returns a scalar with the total rows for a given layout.