Persistent::MySQL 0.50
Sponsored Links
Persistent::MySQL 0.50 Ranking & Summary
File size:
0.010 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
891
Date added:
2007-05-19
Publisher:
David Winters
Persistent::MySQL 0.50 description
Persistent::MySQL is a persistent class implemented using a MySQL database.
SYNOPSIS
use Persistent::MySQL;
use English; # import readable variable names like $EVAL_ERROR
eval { ### in case an exception is thrown ###
### allocate a persistent object ###
my $emp = new Persistent::MySQL($data_source, $username, $password, $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 MySQL 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::MySQL;
use English; # import readable variable names like $EVAL_ERROR
eval { ### in case an exception is thrown ###
### allocate a persistent object ###
my $emp = new Persistent::MySQL($data_source, $username, $password, $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 MySQL 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::MySQL 0.50 Screenshot
Persistent::MySQL 0.50 Keywords
MySQL
MySQL 0.50
EVAL
persistent class
MySQL Database
persistent
UNDEF
class
attribute
number
sal
Persistent::MySQL
PersistentMySQL
Persistent::MySQL 0.50
Libraries
Programming
Bookmark Persistent::MySQL 0.50
Persistent::MySQL 0.50 Copyright
WareSeeker periodically updates pricing and software information of Persistent::MySQL 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::MySQL 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
mysql database creating
mysql create database
attributes definition
classic industries
php forms for mysql database
mysql database tutorial
personal attributes
undefined
classified ads
persistent fever
php mysql
attributes of jesus
mysql database backup
classmates
attributes
persistent cough
attributes god
persistent pulmonary hypertension
Related Software
Persistent::mSQL is a persistent class implemented using a mSQL 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
Remote MySQL Query is a PHP class that can easily execute queries on a remote MySQL server using only HTTP. Free Download
Web Service Engine for MySQL is a storage engine for the MySQL database. Free Download
Latest Software
- Navicat MySQL administrator Manager for Linux (Freeware available) 8.0.28
- MONyog MySQL Monitor for liunx 2.7
- Navicat MySQL Manager for Linux 8.0.27
- Navicat MySQL database tool for Linux (Freeware) 8.0.29
- MySQLfs 0.4.0 RC1
- Zmanda Recovery Manager for MySQL 1.2.1
- Large Database Backup 1.0
- Database Functions 1.0
Popular Software
Favourite Software