debian man page for dbix::recordset::fileseq

Query: dbix::recordset::fileseq

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Recordset::FileSeq(3pm) 				User Contributed Perl Documentation				   Recordset::FileSeq(3pm)

NAME
DBIx::Recordset::FileSeq - Sequence generator in Filesystem
SYNOPSIS
use DBIx::Recordset::FileSeq ; $self = DBIx::Recordset::FileSeq (undef, '/tmp/seq', $min, $max) ; $val1 = $self -> NextVal ('foo') ; $val2 = $self -> NextVal ('foo') ; $val3 = $self -> NextVal ('bar') ;
DESCRIPTION
DBIx::Recordset::FileSeq generates unique numbers. State is kept in the filesystem. With the new constructor you specify the directory where the state is kept. (First parameter is a dummy values, that will receive the database handle from DBIx::Recordset, but you don't need it when you use it without DBIx::Recordset). Optionaly you can give a min and a max values, which will be used for new sequences. With NextVal you can get the next value for the sequence of the given name. The state if kept by haveing a file with the name seq.<seqencename>.<max>.<count> Each time the sequnce value increments the file is renamed. If the <max> if a numeric value the new value is checked against <max> and NextVal dies if the sequnce value increment above max.
AUTHOR
G.Richter (richter@dev.ecos.de)
SEE ALSO
DBIx::Recordset perl v5.10.1 2010-03-05 Recordset::FileSeq(3pm)
Related Man Pages
dbix::class::manual::docmap(3) - mojave
dbix::simple::result::rowobject(3) - centos
dbix::class::schema::loader::dbobject(3pm) - debian
dbix::compat(3pm) - debian
dbix::searchbuilder::handle::mysql(3pm) - debian
Similar Topics in the Unix Linux Community
Adding the individual columns of a matrix.
How can I do this in VI editor?
Is UNIX an open source OS ?
Introduction
One instance of comparing grep and awk