NAME

cs::DBI::DatedTable - control a table of attributes with a date range


SYNOPSIS

use cs::DBI::DatedTable;


DESCRIPTION

The cs::DBI::DatedTable module manipulates a table of records with day-resolution START_DATE and END_DATE fields (the latter of which may be NULL to indicate an open range).


OBJECT CREATION

new cs::DBI::DatedTable dbh,table

Creates a new object attached to the specified database dbh and table.


OBJECT METHODS

Find(when,selwhere)

Return an array of hashrefs for all the records matching selwhere which overlap the day when. selwhere is a flat array of field/value pairs to select the records.

AddRecord(rec,when)

Add the record denoted by the hashref rec to the table as a new record commencing when. The argument when is optional and defaults to today.

DelRecord(when,delwhere)

Expire the record denoted by delwhere at the date when. delwhere is a flat array of field/value pairs to select the record to expire.


AUTHOR

Cameron Simpson <cs@zip.com.au>