App::Dochazka::REST::Model::Lock - lock data model
use App::Dochazka::REST::Model::Lock; ...
A description of the lock data model follows.
CREATE TABLE locks ( lid serial PRIMARY KEY, eid integer REFERENCES Employees (EID), intvl tsrange NOT NULL, remark text )
There is also a stored procedure, fully_locked, that takes an EID and a tsrange, and returns a boolean value indicating whether or not that period is fully locked for the given employee.
fully_locked
# FIXME: MISSING VERBIAGE
This module provides the following exports:
lid_exists (boolean)
lid_exists
Instance method. Given an LID, loads a single lock into the object, rewriting whatever was there before. Returns a status object.
Instance method. Attempts to INSERT a record. Field values are taken from the object. Returns a status object.
Instance method. Attempts to UPDATE a record. Field values are taken from the object. Returns a status object.
Instance method. Attempts to DELETE a record. Field values are taken from the object. Returns a status object.
Boolean
Nathan Cutler, <presnypreklad@gmail.com>
<presnypreklad@gmail.com>
To install App::Dochazka::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Dochazka::REST
CPAN shell
perl -MCPAN -e shell install App::Dochazka::REST
For more information on module installation, please visit the detailed CPAN module installation guide.