Class::DBI::AutoIncrement 0.05

Class::DBI::AutoIncrement 0.05

Sponsored Links

Class::DBI::AutoIncrement 0.05 Ranking & Summary

Ranking Click at the star to rankRanking level:
User Review: 0 (0 times) Download now
File size: 0.008 MB Platform: Any Platform License: Perl Artistic License Price: Downloads: 7305 Date added: 2007-01-25 Publisher: Erwan Lemonnier Publisher URL: http://search.cpan.org/~e

Class::DBI::AutoIncrement 0.05 description

Class::DBI::AutoIncrement is a Perl module to emulate auto-incrementing columns on Class::DBI subclasses.

SYNOPSIS

Lets assume you have a project making use of Class::DBI. You have implemented a subclass of Class::DBI called MyProject::DBI that opens a connection towards your projects database. You also created a class called MyProject::Book that represents the table Book in your database:

package MyProject::Book;
use base qw(MyProject::DBI);

MyProject::Book->table(book);
MyProject::Book->columns(Primary => qw(seqid));
MyProject::Book->table(Others => qw(author title isbn));

Now, you would like the column seqid of the table Book to be auto-incrementing, but your database unfortunately does not support auto-incrementing sequences. Instead, use Class::DBI::AutoIncrement to set the value of seqid automagically upon each insert():

package MyProject::Book;
use base qw(Class::DBI::AutoIncrement MyProject::DBI);

MyProject::Book->table(book);
MyProject::Book->columns(Primary => qw(seqid));
MyProject::Book->table(Others => qw(author title isbn));
MyProject::Book->autoincrement(seqid);
From now on, when you call:
my $book = Book->insert({author => me, title => my life});

$book gets its seqid field automagically set to the next available value for that column. If you had 3 rows in the table book having seqids 1, 2 and 3, this new inserted row will get the seqid 4 (assuming a default setup).

Download now

Class::DBI::AutoIncrement 0.05 Screenshot

Sponsored Links
Download Class::DBI::AutoIncrement 0.05

Class::DBI::AutoIncrement 0.05 Keywords

Bookmark Class::DBI::AutoIncrement 0.05

Hyperlink code:
Hyperlink and Intro code:

Class::DBI::AutoIncrement 0.05 Copyright

WareSeeker periodically updates pricing and software information of Class::DBI::AutoIncrement 0.05 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Class::DBI::AutoIncrement 0.05 Edition. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Class::DBI::AutoIncrement 0.05 Related Software


Class::Bits is a Perl module with class wrappers around bit vectors.

Rose::Class::MakeMethods::Set is a Perl module to create class methods to manage sets.

Class::StrongSingleton is a stronger and more secure Singleton base class.

Class::HPLOO is an easier way to declare classes on Perl, based in the popular class {...} style and ePod.

Class::DBI::Query is a Perl module with deprecated SQL manager for Class::DBI.

Class::ArrayObjects is a Perl utility class for array based objects.

Class::Meta is a Perl class automation, introspection, and data validation.

Class::ObjectTemplate is a Perl extension for an optimized template builder base class.

Class::DBI::ConceptSearch is a Perl module to retrieve Class::DBI aggregates from high-level conceptual searches.

TagCloud Maker Class is a class that takes a single dimensional array of terms and outputs a piece of HTML with each term.
Class::DBI::AutoIncrement 0.05 Review:
Author name* :  
Author Email* :  
Comment* :  
Security code* :  
     
   
My Software
You have not saved any software. Click "Save" next to each software to save it to your software basket
Related Information
Sponsored Links
TOP POPULAR DOWNLOAD