Persistent::mSQL 0.50
Sponsored Links
Persistent::mSQL 0.50 Ranking & Summary
File size:
0.010 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
887
Date added:
2007-05-22
Publisher:
David Winters
Persistent::mSQL 0.50 description
Persistent::mSQL is a persistent class implemented using a mSQL database.
SYNOPSIS
use Persistent::mSQL;
use English; # import readable variable names like $EVAL_ERROR
eval { ### in case an exception is thrown ###
### allocate a persistent object ###
my $emp = new Persistent::mSQL($data_source, undef, undef, $table);
### define attributes of the object ###
$emp->add_attribute(empno, ID, Number, undef, 4);
$emp->add_attribute(ename, Persistent, VarChar, undef, 10);
$emp->add_attribute(job, Persistent, VarChar, undef, 9);
$emp->add_attribute(mgr, Persistent, Number, undef, 4);
$emp->add_attribute(hiredate, Persistent, DateTime, undef);
$emp->add_attribute(sal, Persistent, Number, undef, 7, 2);
$emp->add_attribute(comm, Persistent, Number, undef, 7, 2);
$emp->add_attribute(deptno, Persistent, Number, undef, 2);
### query the datastore for some objects ###
$emp->restore_where(qq{
sal > 1000 and
job = CLERK and
ename LIKE M%
}, "sal, ename");
while ($emp->restore_next()) {
printf "ename = %s, emp# = %s, sal = %s, hiredate = %sn",
$emp->ename, $emp->empno, $emp->sal, $emp->hiredate;
}
};
if ($EVAL_ERROR) { ### catch those exceptions! ###
print "An error occurred: $EVAL_ERRORn";
}
ABSTRACT
This is a Persistent class that uses a mSQL database table to store and retrieve objects. This class can be instantiated directly or subclassed. The methods described below are unique to this class, and all other methods that are provided by this class are documented in the Persistent documentation. The Persistent documentation has a very thorough introduction to using the Persistent framework of classes.
SYNOPSIS
use Persistent::mSQL;
use English; # import readable variable names like $EVAL_ERROR
eval { ### in case an exception is thrown ###
### allocate a persistent object ###
my $emp = new Persistent::mSQL($data_source, undef, undef, $table);
### define attributes of the object ###
$emp->add_attribute(empno, ID, Number, undef, 4);
$emp->add_attribute(ename, Persistent, VarChar, undef, 10);
$emp->add_attribute(job, Persistent, VarChar, undef, 9);
$emp->add_attribute(mgr, Persistent, Number, undef, 4);
$emp->add_attribute(hiredate, Persistent, DateTime, undef);
$emp->add_attribute(sal, Persistent, Number, undef, 7, 2);
$emp->add_attribute(comm, Persistent, Number, undef, 7, 2);
$emp->add_attribute(deptno, Persistent, Number, undef, 2);
### query the datastore for some objects ###
$emp->restore_where(qq{
sal > 1000 and
job = CLERK and
ename LIKE M%
}, "sal, ename");
while ($emp->restore_next()) {
printf "ename = %s, emp# = %s, sal = %s, hiredate = %sn",
$emp->ename, $emp->empno, $emp->sal, $emp->hiredate;
}
};
if ($EVAL_ERROR) { ### catch those exceptions! ###
print "An error occurred: $EVAL_ERRORn";
}
ABSTRACT
This is a Persistent class that uses a mSQL database table to store and retrieve objects. This class can be instantiated directly or subclassed. The methods described below are unique to this class, and all other methods that are provided by this class are documented in the Persistent documentation. The Persistent documentation has a very thorough introduction to using the Persistent framework of classes.
Persistent::mSQL 0.50 Screenshot
Persistent::mSQL 0.50 Keywords
EVAL
persistent class
msql database
persistent
UNDEF
class
attribute
number
sal
Persistent::mSQL
PersistentmSQL
Persistent::mSQL 0.50
Libraries
Programming
Bookmark Persistent::mSQL 0.50
Persistent::mSQL 0.50 Copyright
WareSeeker periodically updates pricing and software information of Persistent::mSQL 0.50 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 Persistent::mSQL 0.50 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
attributes definition
classic industries
personal attributes
undefined
classified ads
persistent fever
attributes of jesus
mysql database
attributes
persistent cough
classmates
attributes god
persistent pulmonary hypertension
classic auto trader
define attribute
undefeated
msql database engine
mysql database creating
Related Software
Persistent::MySQL is a persistent class implemented using a MySQL database. Free Download
Persistent::LDAP is a persistent class implemented using a LDAP directory. Free Download
Persistent::Oracle is a persistent class implemented using an Oracle database. Free Download
Persistent::Sybase is a persistent class implemented using a Sybase database. Free Download
Persistent::DBI is an Abstract Persistent Class implemented using a DBI Data Source. Free Download
Persistent::Base is an Abstract Persistent Base Class. Free Download
TjMSNLib is an MSN Messenger client library written in Java and designed to be platform independent. Free Download
Lexical::Persistence is a Perl module for persistent lexical variable values for arbitrary calls. Free Download
Latest Software
Popular Software
Favourite Software