[ANNOUNCEMENT] DB_Table-1.5.0RC3 (beta) Released.
| From: | PEAR Announce | Date: | Thu, 14 Jun 2007 15:49:03 +0000 |
| Subject: | [ANNOUNCEMENT] DB_Table-1.5.0RC3 (beta) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27472@lists.php.net to get a copy of this message | ||
The new PEAR package DB_Table-1.5.0RC3 (beta) has been released at http://pear.php.net/.
Release notes
-------------
- Added complete documentation in the PEAR manual.
- new DB_Table_Base class added. This is a parent class for DB_Table and DB_Table_Database that
contains methods and properties common to both classes.
- The DB_Table::select*() and DB_Table::buildSQL() methods, which are now inherited from the
DB_Table_Base class, now accept either a query array or (as before) a key of the $sql property array
as a first argument.
- Added DB_Table_Database::onDeleteAction() and DB_Table_Database::onUpdateAction() methods, which
implement referentially triggered actions (e.g., cascading deletes). This code had previously been
part of the DB_Table_Database insert() and update() methods.
- Changed behavior of DB_Table::insert() and DB_Table::update() method for a DB_Table object that is
part of a DB_Table_Database instance: If a parent DB_Table_Database object exists, these methods can
now validate foreign keys and implement ON DELETE and ON UPDATE actions, if these behaviors are
enabled in the parent DB_Table_Database object. The behaviors of the DB_Table and DB_Table_Database
insert and update methods are now identical. (This is a BC break with 1.5.0RC1 and 1.5.0RC2 beta
releases, but not with earlier stable releases.)
Package Info
------------
The DB_Table package provides an object oriented interface to a database.
Each instance of the core DB_Table class contains the schema for a table, defined using abstract
data types. The class provides a portable api for insert, update, delete, and select SQL commands,
and can validate data types upon insertion and updating. It provides methods to automatically create
or verify a database table. DB_Table also provides methods (using PEAR HTML_QuickForm) to generate
input forms that match the column definitions.
Each instance of the DB_Table_Database class contains a model of relationships between tables in a
database, in which each table is represented by an instance of DB_Table. DB_Table_Database provides
a method for automatic construction of join conditions for inner joins involving any number of
tables, optional php validation of foreign key validity, and optional php emulation of actions
triggered on delete or update of referenced rows, such as cascading deletes.
The DB_Table_Generator class auto-generates the php code necessary to create an interface to an
existing database.
Related Links
-------------
Package home: http://pear.php.net/package/DB_Table
Changelog: http://pear.php.net/package/DB_Table/download/1.5.0RC3
Download: http://download.pear.php.net/package/DB_Table-1.5.0RC3.tgz
Authors
-------
Mark Wiesemann <wiesemann@php.net> (lead)
David Morse <morse@cems.umn.edu> (lead)