-
-
04 Oct 2004 19:30:54 UTC
- Distribution: DBIx-Recordset
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (4)
- Testers (14 / 118 / 0)
- Kwalitee
Bus factor: 1- 3.92% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (92.54KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
DBIx::Recordset::DBSeq - Sequence generator in DBI database
SYNOPSIS
use DBIx::Recordset::DBSeq ; $self = DBIx::Recordset::DBSeq ($dbh, 'sequences', $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 one table of a database accessable via DBI. With the new constructor you give an open database handle and sepcify the the table where state should be kept. 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 table must created in the following form:
create table ( name varchar (32), cnt integer, maxcnt integer, primary key name ) ;
If the sequence value reaches the maxcnt value, NextVal will die with an error message. If maxcnt contains
null
there is no limit.AUTHOR
G.Richter (richter@dev.ecos.de)
SEE ALSO
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 161:
'=item' outside of any '=over'
=over without closing =back
Module Install Instructions
To install DBIx::Recordset, copy and paste the appropriate command in to your terminal.
cpanm DBIx::Recordset
perl -MCPAN -e shell install DBIx::Recordset
For more information on module installation, please visit the detailed CPAN module installation guide.