Jakob Voß > Data-Beacon-0.2.7 > Data::Beacon::Collection::DBI

Download:
Data-Beacon-0.2.7.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

DESCRIPTION ^

This class is a subclass of Data::Beacon::Collection.

METHODS ^

new ( ... )

Create a new Beacon collection in a database.

connected

Return whether a database connection has been established.

get ( $name )

Get a named Beacon as Data::Beacon::DBI object or undef.

insert ( $name, $beacon )

Insert a named Beacon (Data::Beacon). This method works as 'upsert', that means you can replace or add a Beacon. Returns the inserted Beacon as Data::Beacon::DBI or undef on error.

remove ( $name )

Remove a named Beacon. Returns true if an existing Beacon has been removed.

list ( [ %meta ] )

List the names of all namad Beacons. Optionally you can ask for specific meta fields that must match (not implemented yet).

INTERNAL METHODS ^

lasterror

Returns the last parsing error message (if any).

errors

Returns the number of errors or zero.

_handle_error ( $msg )

Internal error handler that calls a custom error handler, increases the error counter and stores the last error.

syntax highlighting: