DBIx::Recordset 0.26
Sponsored Links
DBIx::Recordset 0.26 Ranking & Summary
File size:
0.092 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
844
Date added:
2007-07-02
Publisher:
G.Richter
DBIx::Recordset 0.26 description
DBIx::Recordset is a Perl extension for DBI recordsets.
SYNOPSIS
use DBIx::Recordset;
# Setup a new object and select some recods...
*set = DBIx::Recordset -> Search ({!DataSource => dbi:Oracle:....,
!Table => users,
$where => name = ? and age > ?,
$values => [richter, 25] }) ;
# Get the values of field foo ...
print "First Records value of foo is $set[0]{foo}n" ;
print "Second Records value of foo is $set[1]{foo}n" ;
# Get the value of the field age of the current record ...
print "Age is $set{age}n" ;
# Do another select with the already created object...
$set -> Search ({name => bar}) ;
# Show the result...
print "All users with name bar:n" ;
while ($rec = $set -> Next)
{
print $rec -> {age} ;
}
# Setup another object and insert a new record
*set2 = DBIx::Recordset -> Insert ({!DataSource => dbi:Oracle:....,
!Table => users,
name => foo,
age => 25 }) ;
# Update this record (change age from 25 to 99)...
$set -> Update ({age => 99}, {name => foo}) ;
DBIx::Recordset is a perl module for abstraction and simplification of database access.
The goal is to make standard database access (select/insert/update/delete) easier to handle and independend of the underlying DBMS. Special attention is made on web applications to make it possible to handle the state-less access and to process the posted data of formfields, but DBIx::Recordset is not limited to web applications.
DBIx::Recordset uses the DBI API to access the database, so it should work with every database for which a DBD driver is available (see also DBIx::Compat).
Most public functions take a hash reference as parameter, which makes it simple to supply various different arguments to the same function. The parameter hash can also be taken from a hash containing posted formfields like those available with CGI.pm, mod_perl, HTML::Embperl and others.
Before using a recordset it is necessary to setup an object. Of course the setup step can be made with the same function call as the first database access, but it can also be handled separately.
Most functions which set up an object return a typglob. A typglob in Perl is an object which holds pointers to all datatypes with the same name. Therefore a typglob must always have a name and cant be declared with my. You can only use it as global variable or declare it with local. The trick for using a typglob is that setup functions can return a reference to an object, an array and a hash at the same time.
The object is used to access the objects methods, the array is used to access the records currently selected in the recordset and the hash is used to access the current record.
If you dont like the idea of using typglobs you can also set up the object, array and hash separately, or just set the ones you need.
SYNOPSIS
use DBIx::Recordset;
# Setup a new object and select some recods...
*set = DBIx::Recordset -> Search ({!DataSource => dbi:Oracle:....,
!Table => users,
$where => name = ? and age > ?,
$values => [richter, 25] }) ;
# Get the values of field foo ...
print "First Records value of foo is $set[0]{foo}n" ;
print "Second Records value of foo is $set[1]{foo}n" ;
# Get the value of the field age of the current record ...
print "Age is $set{age}n" ;
# Do another select with the already created object...
$set -> Search ({name => bar}) ;
# Show the result...
print "All users with name bar:n" ;
while ($rec = $set -> Next)
{
print $rec -> {age} ;
}
# Setup another object and insert a new record
*set2 = DBIx::Recordset -> Insert ({!DataSource => dbi:Oracle:....,
!Table => users,
name => foo,
age => 25 }) ;
# Update this record (change age from 25 to 99)...
$set -> Update ({age => 99}, {name => foo}) ;
DBIx::Recordset is a perl module for abstraction and simplification of database access.
The goal is to make standard database access (select/insert/update/delete) easier to handle and independend of the underlying DBMS. Special attention is made on web applications to make it possible to handle the state-less access and to process the posted data of formfields, but DBIx::Recordset is not limited to web applications.
DBIx::Recordset uses the DBI API to access the database, so it should work with every database for which a DBD driver is available (see also DBIx::Compat).
Most public functions take a hash reference as parameter, which makes it simple to supply various different arguments to the same function. The parameter hash can also be taken from a hash containing posted formfields like those available with CGI.pm, mod_perl, HTML::Embperl and others.
Before using a recordset it is necessary to setup an object. Of course the setup step can be made with the same function call as the first database access, but it can also be handled separately.
Most functions which set up an object return a typglob. A typglob in Perl is an object which holds pointers to all datatypes with the same name. Therefore a typglob must always have a name and cant be declared with my. You can only use it as global variable or declare it with local. The trick for using a typglob is that setup functions can return a reference to an object, an array and a hash at the same time.
The object is used to access the objects methods, the array is used to access the records currently selected in the recordset and the hash is used to access the current record.
If you dont like the idea of using typglobs you can also set up the object, array and hash separately, or just set the ones you need.
DBIx::Recordset 0.26 Screenshot
DBIx::Recordset 0.26 Keywords
DBIx
DBI
Recordset 0.26
to access
perl extension
object
age
access
Perl
name
Foo
DBIx::Recordset
DBIxRecordset
DBIx::Recordset 0.26
Libraries
Programming
Bookmark DBIx::Recordset 0.26
DBIx::Recordset 0.26 Copyright
WareSeeker periodically updates pricing and software information of DBIx::Recordset 0.26 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 DBIx::Recordset 0.26 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
dbix class
object lessons
access indiana
wisconsin circuit court access
hidden object games
accesshr
objectives for resumes
objective
access hollywood
access north georgia
object desktop
sample resume objectives
microsoft access
dbix dwiw
objection
cell phone accessories
accessory
perl extension implementing
Related Software
DBIx::Recordset::Playground is a Perl module with working sample usages of DBIx::Recordset. Free Download
DBIx::Wrapper is a Perl module that serves as a wrapper around DBI. Free Download
DBIx::Perlish module provides the ability to work with databases supported by the DBI module. Free Download
DBIx::DBStag is a Perl module for Relational Database to Hierarchical (Stag/XML) Mapping. Free Download
DBIx::Version is a Perl extension for getting database software name and version. Free Download
DBIx::FetchLoop is a Perl module that can fetch with change detection and aggregates. Free Download
DBIx::Frame is a Perl module for creating and maintaining DBI frameworks. Free Download
DBIx::XMLServer is a Perl module to serve data as XML in response to HTTP requests. Free Download
Latest Software
Popular Software
Favourite Software