GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DBIX::RECORDSET::FILESEQ (3)

.ds Aq ’

NAME

DBIx::Recordset::FileSeq - Sequence generator in Filesystem

CONTENTS

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 sepcify 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 <B>NextValB> 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

POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 194: ’=item’ outside of any ’=over’

=over without closing =back

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 RECORDSET::FILESEQ (3) 2003-11-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.