cvs: pear /DBA DBA.php DBA_Builtin.php DBA_Compat.php DBA_Relational.php DBA_Simple.php DBA_Sql.php DBA_Table.php DBA_Toolbox.php Sql_lex.php
Sql_parse.php package.xml
| From: | Brent Cook | Date: | Wed, 17 Jul 2002 08:52:02 +0000 |
| Subject: | cvs: pear /DBA DBA.php DBA_Builtin.php DBA_Compat.php DBA_Relational.php DBA_Simple.php DBA_Sql.php DBA_Table.php DBA_Toolbox.php Sql_lex.php Sql_parse.php package.xml |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5148@lists.php.net to get a copy of this message | ||
busterb Wed Jul 17 04:52:02 2002 EDT
Modified files:
/pear/DBA DBA.php DBA_Builtin.php DBA_Compat.php DBA_Relational.php
DBA_Simple.php DBA_Sql.php DBA_Table.php DBA_Toolbox.php
Sql_lex.php Sql_parse.php package.xml
Log:
bump version numbers for release
Index: pear/DBA/DBA.php diff -u pear/DBA/DBA.php:1.11 pear/DBA/DBA.php:1.12 --- pear/DBA/DBA.php:1.11 Mon Jul 15 01:04:10 2002 +++ pear/DBA/DBA.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA.php,v 1.11 2002/07/15 05:04:10 busterb Exp $ +// $Id: DBA.php,v 1.12 2002/07/17 08:52:01 busterb Exp $ // /** @@ -28,7 +28,7 @@ * dbm engine for installations where dba support is not included in PHP. * * @author Brent Cook <busterb@mail.utexas.edu> - * @version 0.16 + * @version 0.17 * @access public * @package DBA */ Index: pear/DBA/DBA_Builtin.php diff -u pear/DBA/DBA_Builtin.php:1.13 pear/DBA/DBA_Builtin.php:1.14 --- pear/DBA/DBA_Builtin.php:1.13 Mon Jul 15 01:04:10 2002 +++ pear/DBA/DBA_Builtin.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Builtin.php,v 1.13 2002/07/15 05:04:10 busterb Exp $ +// $Id: DBA_Builtin.php,v 1.14 2002/07/17 08:52:01 busterb Exp $ require_once 'PEAR.php'; @@ -32,7 +32,7 @@ * driver due to its lack of writes. DB2 apparently segfaults PHP? * * @author Brent Cook <busterb@mail.utexas.edu> - * @version 0.16 + * @version 0.17 * @access public * @package DBA */ Index: pear/DBA/DBA_Compat.php diff -u pear/DBA/DBA_Compat.php:1.10 pear/DBA/DBA_Compat.php:1.11 --- pear/DBA/DBA_Compat.php:1.10 Mon Jul 15 01:04:10 2002 +++ pear/DBA/DBA_Compat.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Compat.php,v 1.10 2002/07/15 05:04:10 busterb Exp $ +// $Id: DBA_Compat.php,v 1.11 2002/07/17 08:52:01 busterb Exp $ /** * dba compatibility layer @@ -29,7 +29,7 @@ * work. * * @author Brent Cook <busterb@mail.utexas.edu> - * @version 0.16 + * @version 0.17 * @access public * @package DBA * @see PHP dba Documentation Index: pear/DBA/DBA_Relational.php diff -u pear/DBA/DBA_Relational.php:1.37 pear/DBA/DBA_Relational.php:1.38 --- pear/DBA/DBA_Relational.php:1.37 Wed Jul 17 03:54:34 2002 +++ pear/DBA/DBA_Relational.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Relational.php,v 1.37 2002/07/17 07:54:34 busterb Exp $ +// $Id: DBA_Relational.php,v 1.38 2002/07/17 08:52:01 busterb Exp $ require_once 'PEAR.php'; require_once 'DB/DBA/DBA_Table.php'; @@ -32,7 +32,7 @@ * @author Brent Cook <busterb@mail.utexas.edu> * @package DBA * @access public - * @version 0.16 + * @version 0.17 */ class DBA_Relational extends PEAR { @@ -113,7 +113,7 @@ */ function _DBA_Relational() { -// $this->close(); + $this->close(); } /** Index: pear/DBA/DBA_Simple.php diff -u pear/DBA/DBA_Simple.php:1.24 pear/DBA/DBA_Simple.php:1.25 --- pear/DBA/DBA_Simple.php:1.24 Wed Jul 17 03:30:10 2002 +++ pear/DBA/DBA_Simple.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Simple.php,v 1.24 2002/07/17 07:30:10 busterb Exp $ +// $Id: DBA_Simple.php,v 1.25 2002/07/17 08:52:01 busterb Exp $ require_once 'PEAR.php'; @@ -69,7 +69,7 @@ * The sync function calls fflush on the data and index files. * * @author Brent Cook - * @version 0.16 + * @version 0.17 * @access public * @package DBA */ @@ -492,7 +492,7 @@ $loc = ftell($this->_datFP); // write to the data file - $size = $vsize + 10; // make size 5% larger + $size = $vsize + ceil($vsize / 20); // make size 5% larger // add a useless "\n" to new values. This makes the data file // readable in any text editor. Useful when things go wrong :P Index: pear/DBA/DBA_Sql.php diff -u pear/DBA/DBA_Sql.php:1.13 pear/DBA/DBA_Sql.php:1.14 --- pear/DBA/DBA_Sql.php:1.13 Wed Jul 17 03:28:30 2002 +++ pear/DBA/DBA_Sql.php Wed Jul 17 04:52:01 2002 @@ -18,9 +18,16 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Sql.php,v 1.13 2002/07/17 07:28:30 busterb Exp $ +// $Id: DBA_Sql.php,v 1.14 2002/07/17 08:52:01 busterb Exp $ // +/** + * Functions for executing SQL queries on a DBM database + * @author Brent Cook <busterb@mail.utexas.edu> + * @version 0.17 + * @access public + * @package DBA + */ require_once 'PEAR.php'; require_once 'DB/DBA/Sql_parse.php'; require_once 'DB/DBA/DBA_Relational.php'; Index: pear/DBA/DBA_Table.php diff -u pear/DBA/DBA_Table.php:1.48 pear/DBA/DBA_Table.php:1.49 --- pear/DBA/DBA_Table.php:1.48 Wed Jul 17 03:54:34 2002 +++ pear/DBA/DBA_Table.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Table.php,v 1.48 2002/07/17 07:54:34 busterb Exp $ +// $Id: DBA_Table.php,v 1.49 2002/07/17 08:52:01 busterb Exp $ // require_once 'PEAR.php'; require_once 'DB/DBA/DBA.php'; @@ -77,7 +77,7 @@ * @author Brent Cook <busterb@mail.utexas.edu> * @package DBA * @access public - * @version 0.16 + * @version 0.17 */ class DBA_Table extends PEAR { Index: pear/DBA/DBA_Toolbox.php diff -u pear/DBA/DBA_Toolbox.php:1.4 pear/DBA/DBA_Toolbox.php:1.5 --- pear/DBA/DBA_Toolbox.php:1.4 Wed Jul 17 03:28:30 2002 +++ pear/DBA/DBA_Toolbox.php Wed Jul 17 04:52:01 2002 @@ -18,13 +18,18 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Toolbox.php,v 1.4 2002/07/17 07:28:30 busterb Exp $ +// $Id: DBA_Toolbox.php,v 1.5 2002/07/17 08:52:01 busterb Exp $ // require_once 'PEAR.php'; /** * Insert widgets into a quickform object suitable for updating a row in a DBA * table. + * + * @author Brent Cook <busterb@mail.utexas.edu> + * @version 0.17 + * @access public + * @package DBA */ function addQuickformDBA(&$form, $schema, $auxMeta) { Index: pear/DBA/Sql_lex.php diff -u pear/DBA/Sql_lex.php:1.13 pear/DBA/Sql_lex.php:1.14 --- pear/DBA/Sql_lex.php:1.13 Wed Jul 17 03:36:25 2002 +++ pear/DBA/Sql_lex.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: Sql_lex.php,v 1.13 2002/07/17 07:36:25 busterb Exp $ +// $Id: Sql_lex.php,v 1.14 2002/07/17 08:52:01 busterb Exp $ // include 'DB/DBA/phptype.php'; @@ -35,8 +35,12 @@ // }}} /** - * A lexigraphical analyser - * Inspired by the msql lexer + * A lexigraphical analyser inspired by the msql lexer + * + * @author Brent Cook <busterb@mail.utexas.edu> + * @version 0.17 + * @access public + * @package DBA */ class Lexer { Index: pear/DBA/Sql_parse.php diff -u pear/DBA/Sql_parse.php:1.13 pear/DBA/Sql_parse.php:1.14 --- pear/DBA/Sql_parse.php:1.13 Wed Jul 17 03:30:10 2002 +++ pear/DBA/Sql_parse.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: Sql_parse.php,v 1.13 2002/07/17 07:30:10 busterb Exp $ +// $Id: Sql_parse.php,v 1.14 2002/07/17 08:52:01 busterb Exp $ // require_once 'PEAR.php'; @@ -113,6 +113,14 @@ define('SQL_ENUM',184); // }}} +/** + * A sql parser + * + * @author Brent Cook <busterb@mail.utexas.edu> + * @version 0.17 + * @access public + * @package DBA + */ class Sql_Parser { var $lexer; Index: pear/DBA/package.xml diff -u pear/DBA/package.xml:1.9 pear/DBA/package.xml:1.10 --- pear/DBA/package.xml:1.9 Mon Jul 15 01:04:10 2002 +++ pear/DBA/package.xml Wed Jul 17 04:52:02 2002 @@ -20,24 +20,24 @@ <release> <license>LGPL</license> - <version>0.16</version> - <date>2002-07-14</date> + <version>0.17</version> + <date>2002-07-17</date> <state>devel</state> <notes> <![CDATA[ - More API changes to come, but so far, they're minimal. I'm getting - things cleaned up so that the upcoming SQL frontend will fit nicely. + Test and enjoy. Sequence and more SQL support coming soon. - * Schema format has changed; use DBA_* constants rather than - strings to organize meta data. See example schemas. - * Dropped support for autodecrement; initialize autoincrement by - supplying a default value rather than using the keyword 'init' - * Fixed-length char type support added, varchar preallocates - space in DBA driver if size is supplied - * Fixed some problems with inserting on tables when no primary - key was specified - * Added DBA_Toolbox.php to hold utility functions that are - not necessary for working with DBA, just useful. + * Fixed problem inserting onto a newly created table in + DBA_Relational + * Added support for functions as default values in DBA_Table + (currently only time() works) + * Added a SQL parser/lexer. It currently understands 'create + table', 'insert into' and much that goes with them. + * Added two system fields on rows; _rowid and _timestamp + * Primary keys can consist of more than one field + * Changed DBA_Sql; it now holds functions for interacting with + a DBA database using SQL. See test_sql_dba.php for examples. + * General fixes/cleanups/messups ]]> </notes> <filelist> @@ -49,13 +49,19 @@ <file role="php">DBA_Table.php</file> <file role="php">DBA_Relational.php</file> <file role="php">DBA_Toolbox.php</file> + <file role="php">DBA_Sql.php</file> + <file role="php">Sql_lex.php</file> + <file role="php">Sql_parse.php</file> + <file role="php">phptype.php</file> <dir name="tests" role="test"> <file role="test">benchmark_drivers.php</file> <file role="test">test_simple.php</file> <file role="test">test_relational.php</file> <file role="test">test_table.php</file> + <file role="test">test_sql_dba.php</file> <file role="test">empSchema.php</file> <file role="test">hatSchema.php</file> + <file role="test">employment.sql</file> </dir> <dir name="docs" role="doc"> <file role="doc">README.txt</file>
Index: pear/DBA/DBA.php diff -u pear/DBA/DBA.php:1.11 pear/DBA/DBA.php:1.12 --- pear/DBA/DBA.php:1.11 Mon Jul 15 01:04:10 2002 +++ pear/DBA/DBA.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA.php,v 1.11 2002/07/15 05:04:10 busterb Exp $ +// $Id: DBA.php,v 1.12 2002/07/17 08:52:01 busterb Exp $ // /** @@ -28,7 +28,7 @@ * dbm engine for installations where dba support is not included in PHP. * * @author Brent Cook <busterb@mail.utexas.edu> - * @version 0.16 + * @version 0.17 * @access public * @package DBA */ Index: pear/DBA/DBA_Builtin.php diff -u pear/DBA/DBA_Builtin.php:1.13 pear/DBA/DBA_Builtin.php:1.14 --- pear/DBA/DBA_Builtin.php:1.13 Mon Jul 15 01:04:10 2002 +++ pear/DBA/DBA_Builtin.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Builtin.php,v 1.13 2002/07/15 05:04:10 busterb Exp $ +// $Id: DBA_Builtin.php,v 1.14 2002/07/17 08:52:01 busterb Exp $ require_once 'PEAR.php'; @@ -32,7 +32,7 @@ * driver due to its lack of writes. DB2 apparently segfaults PHP? * * @author Brent Cook <busterb@mail.utexas.edu> - * @version 0.16 + * @version 0.17 * @access public * @package DBA */ Index: pear/DBA/DBA_Compat.php diff -u pear/DBA/DBA_Compat.php:1.10 pear/DBA/DBA_Compat.php:1.11 --- pear/DBA/DBA_Compat.php:1.10 Mon Jul 15 01:04:10 2002 +++ pear/DBA/DBA_Compat.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Compat.php,v 1.10 2002/07/15 05:04:10 busterb Exp $ +// $Id: DBA_Compat.php,v 1.11 2002/07/17 08:52:01 busterb Exp $ /** * dba compatibility layer @@ -29,7 +29,7 @@ * work. * * @author Brent Cook <busterb@mail.utexas.edu> - * @version 0.16 + * @version 0.17 * @access public * @package DBA * @see PHP dba Documentation Index: pear/DBA/DBA_Relational.php diff -u pear/DBA/DBA_Relational.php:1.37 pear/DBA/DBA_Relational.php:1.38 --- pear/DBA/DBA_Relational.php:1.37 Wed Jul 17 03:54:34 2002 +++ pear/DBA/DBA_Relational.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Relational.php,v 1.37 2002/07/17 07:54:34 busterb Exp $ +// $Id: DBA_Relational.php,v 1.38 2002/07/17 08:52:01 busterb Exp $ require_once 'PEAR.php'; require_once 'DB/DBA/DBA_Table.php'; @@ -32,7 +32,7 @@ * @author Brent Cook <busterb@mail.utexas.edu> * @package DBA * @access public - * @version 0.16 + * @version 0.17 */ class DBA_Relational extends PEAR { @@ -113,7 +113,7 @@ */ function _DBA_Relational() { -// $this->close(); + $this->close(); } /** Index: pear/DBA/DBA_Simple.php diff -u pear/DBA/DBA_Simple.php:1.24 pear/DBA/DBA_Simple.php:1.25 --- pear/DBA/DBA_Simple.php:1.24 Wed Jul 17 03:30:10 2002 +++ pear/DBA/DBA_Simple.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Simple.php,v 1.24 2002/07/17 07:30:10 busterb Exp $ +// $Id: DBA_Simple.php,v 1.25 2002/07/17 08:52:01 busterb Exp $ require_once 'PEAR.php'; @@ -69,7 +69,7 @@ * The sync function calls fflush on the data and index files. * * @author Brent Cook - * @version 0.16 + * @version 0.17 * @access public * @package DBA */ @@ -492,7 +492,7 @@ $loc = ftell($this->_datFP); // write to the data file - $size = $vsize + 10; // make size 5% larger + $size = $vsize + ceil($vsize / 20); // make size 5% larger // add a useless "\n" to new values. This makes the data file // readable in any text editor. Useful when things go wrong :P Index: pear/DBA/DBA_Sql.php diff -u pear/DBA/DBA_Sql.php:1.13 pear/DBA/DBA_Sql.php:1.14 --- pear/DBA/DBA_Sql.php:1.13 Wed Jul 17 03:28:30 2002 +++ pear/DBA/DBA_Sql.php Wed Jul 17 04:52:01 2002 @@ -18,9 +18,16 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Sql.php,v 1.13 2002/07/17 07:28:30 busterb Exp $ +// $Id: DBA_Sql.php,v 1.14 2002/07/17 08:52:01 busterb Exp $ // +/** + * Functions for executing SQL queries on a DBM database + * @author Brent Cook <busterb@mail.utexas.edu> + * @version 0.17 + * @access public + * @package DBA + */ require_once 'PEAR.php'; require_once 'DB/DBA/Sql_parse.php'; require_once 'DB/DBA/DBA_Relational.php'; Index: pear/DBA/DBA_Table.php diff -u pear/DBA/DBA_Table.php:1.48 pear/DBA/DBA_Table.php:1.49 --- pear/DBA/DBA_Table.php:1.48 Wed Jul 17 03:54:34 2002 +++ pear/DBA/DBA_Table.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Table.php,v 1.48 2002/07/17 07:54:34 busterb Exp $ +// $Id: DBA_Table.php,v 1.49 2002/07/17 08:52:01 busterb Exp $ // require_once 'PEAR.php'; require_once 'DB/DBA/DBA.php'; @@ -77,7 +77,7 @@ * @author Brent Cook <busterb@mail.utexas.edu> * @package DBA * @access public - * @version 0.16 + * @version 0.17 */ class DBA_Table extends PEAR { Index: pear/DBA/DBA_Toolbox.php diff -u pear/DBA/DBA_Toolbox.php:1.4 pear/DBA/DBA_Toolbox.php:1.5 --- pear/DBA/DBA_Toolbox.php:1.4 Wed Jul 17 03:28:30 2002 +++ pear/DBA/DBA_Toolbox.php Wed Jul 17 04:52:01 2002 @@ -18,13 +18,18 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Toolbox.php,v 1.4 2002/07/17 07:28:30 busterb Exp $ +// $Id: DBA_Toolbox.php,v 1.5 2002/07/17 08:52:01 busterb Exp $ // require_once 'PEAR.php'; /** * Insert widgets into a quickform object suitable for updating a row in a DBA * table. + * + * @author Brent Cook <busterb@mail.utexas.edu> + * @version 0.17 + * @access public + * @package DBA */ function addQuickformDBA(&$form, $schema, $auxMeta) { Index: pear/DBA/Sql_lex.php diff -u pear/DBA/Sql_lex.php:1.13 pear/DBA/Sql_lex.php:1.14 --- pear/DBA/Sql_lex.php:1.13 Wed Jul 17 03:36:25 2002 +++ pear/DBA/Sql_lex.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: Sql_lex.php,v 1.13 2002/07/17 07:36:25 busterb Exp $ +// $Id: Sql_lex.php,v 1.14 2002/07/17 08:52:01 busterb Exp $ // include 'DB/DBA/phptype.php'; @@ -35,8 +35,12 @@ // }}} /** - * A lexigraphical analyser - * Inspired by the msql lexer + * A lexigraphical analyser inspired by the msql lexer + * + * @author Brent Cook <busterb@mail.utexas.edu> + * @version 0.17 + * @access public + * @package DBA */ class Lexer { Index: pear/DBA/Sql_parse.php diff -u pear/DBA/Sql_parse.php:1.13 pear/DBA/Sql_parse.php:1.14 --- pear/DBA/Sql_parse.php:1.13 Wed Jul 17 03:30:10 2002 +++ pear/DBA/Sql_parse.php Wed Jul 17 04:52:01 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: Sql_parse.php,v 1.13 2002/07/17 07:30:10 busterb Exp $ +// $Id: Sql_parse.php,v 1.14 2002/07/17 08:52:01 busterb Exp $ // require_once 'PEAR.php'; @@ -113,6 +113,14 @@ define('SQL_ENUM',184); // }}} +/** + * A sql parser + * + * @author Brent Cook <busterb@mail.utexas.edu> + * @version 0.17 + * @access public + * @package DBA + */ class Sql_Parser { var $lexer; Index: pear/DBA/package.xml diff -u pear/DBA/package.xml:1.9 pear/DBA/package.xml:1.10 --- pear/DBA/package.xml:1.9 Mon Jul 15 01:04:10 2002 +++ pear/DBA/package.xml Wed Jul 17 04:52:02 2002 @@ -20,24 +20,24 @@ <release> <license>LGPL</license> - <version>0.16</version> - <date>2002-07-14</date> + <version>0.17</version> + <date>2002-07-17</date> <state>devel</state> <notes> <![CDATA[ - More API changes to come, but so far, they're minimal. I'm getting - things cleaned up so that the upcoming SQL frontend will fit nicely. + Test and enjoy. Sequence and more SQL support coming soon. - * Schema format has changed; use DBA_* constants rather than - strings to organize meta data. See example schemas. - * Dropped support for autodecrement; initialize autoincrement by - supplying a default value rather than using the keyword 'init' - * Fixed-length char type support added, varchar preallocates - space in DBA driver if size is supplied - * Fixed some problems with inserting on tables when no primary - key was specified - * Added DBA_Toolbox.php to hold utility functions that are - not necessary for working with DBA, just useful. + * Fixed problem inserting onto a newly created table in + DBA_Relational + * Added support for functions as default values in DBA_Table + (currently only time() works) + * Added a SQL parser/lexer. It currently understands 'create + table', 'insert into' and much that goes with them. + * Added two system fields on rows; _rowid and _timestamp + * Primary keys can consist of more than one field + * Changed DBA_Sql; it now holds functions for interacting with + a DBA database using SQL. See test_sql_dba.php for examples. + * General fixes/cleanups/messups ]]> </notes> <filelist> @@ -49,13 +49,19 @@ <file role="php">DBA_Table.php</file> <file role="php">DBA_Relational.php</file> <file role="php">DBA_Toolbox.php</file> + <file role="php">DBA_Sql.php</file> + <file role="php">Sql_lex.php</file> + <file role="php">Sql_parse.php</file> + <file role="php">phptype.php</file> <dir name="tests" role="test"> <file role="test">benchmark_drivers.php</file> <file role="test">test_simple.php</file> <file role="test">test_relational.php</file> <file role="test">test_table.php</file> + <file role="test">test_sql_dba.php</file> <file role="test">empSchema.php</file> <file role="test">hatSchema.php</file> + <file role="test">employment.sql</file> </dir> <dir name="docs" role="doc"> <file role="doc">README.txt</file>