cvs: php4 /pear/DB IDEAS
| From: | Thomas V.V.Cox | Date: | Fri, 23 Nov 2001 12:43:34 +0000 |
| Subject: | cvs: php4 /pear/DB IDEAS | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1395@lists.php.net to get a copy of this message | ||
cox Fri Nov 23 07:43:34 2001 EDT
Modified files:
/php4/pear/DB IDEAS
Log:
more IDEAS-TODO
Index: php4/pear/DB/IDEAS
diff -u php4/pear/DB/IDEAS:1.1 php4/pear/DB/IDEAS:1.2
--- php4/pear/DB/IDEAS:1.1 Sat Nov 17 06:15:22 2001
+++ php4/pear/DB/IDEAS Fri Nov 23 07:43:34 2001
@@ -1,20 +1,20 @@
-Abstracted Types
-----------------
+Abstracted Types (Stig)
+-----------------------
DB needs a set of types representing the most commonly used types in
all backends. This type set could also be geared towards integration
with things like XML-RPC/SOAP implementations, HTML form classes, etc.
-Real Query Parser
------------------
+Real Query Parser (Stig)
+------------------------
With a real query parser, DB can implement more of its portability
based on the query, instead of having support functions for
everything. One example would be LIMIT, another "INSERT
... RETURNING".
-Portable transactions
----------------------
+Portable transactions (Stig)
+----------------------------
If DB can parse queries enough to determine what tables are affected
by queries, it should be possible to make a replayable transaction
@@ -23,3 +23,25 @@
With a similar approach for transactions in DB we can implement
portable transactions and checkpointing even for the databases that
don't support them.
+
+
+Error reporting clean-up/debug (Tomas)
+-------------------------------------
+Now each driver has its own raiseError method, common has a raiseError and
+DB has a DB_error class and its own isError() method. This error stuff
+overhead could be simplified with only one raiseError, droping the DB Error
+class and also the DB::isError() (use the PEAR.php ones instead).
+Other idea could be to add a system for allowing people access to all the
+queries sended by PEAR DB to the backend. Also a new PEAR_ERROR_DEBUG
+flag that automatically (show|triggers) debug info, perhaps
+with a new PEAR_(Warning|Debug) object.
+
+Quote clean-up (Stig)
+---------------------
+1. Keep quote and quoteString, but move quoting of strings back into
+ quoteString and make quote call it for strings.
+
+2. Add an optional "operator" parameter to quote that is one of "=",
+ "<", ">" or "<>" that will be inserted in front of the
quoted value
+ unless it is NULL, in which case it will be converted to "IS" (for
+ "=") or "IS NOT" (for the others).