note 111647 added to mysqlinfo.api.choosing
| From: | michaelnatassociationsplusdotseeeh | Date: | Tue, 12 Mar 2013 14:49:34 +0000 |
| Subject: | note 111647 added to mysqlinfo.api.choosing | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194040@lists.php.net to get a copy of this message | ||
Another useful consideration to keep in mind when choosing your library is how extensible it is.
Chances are, in any sufficiently advanced development scenario, you're going to be extending
your database access class to add a method (or multiple methods) for how to handle database errors
and alert the development team of errors and whether to have the code fail immediately or fail
gracefully serving the user a user-friendly failure notice.
For example, I have a class where I have added extra parameters to the query() function (and a few
others), which accept the __FILE__ and __LINE__ constants to facilitate tracking issues. If this
were not reasonably possible with PDO-mysql for example (not sure, never used it), it may make one
option or the other much less likely to be viable for your usage case.
----
Server IP: 69.147.83.199
Probable Submitter: 96.53.16.122
----
Manual Page -- http://php.net/manual/en/mysqlinfo.api.choosing.php
Edit -- https://master.php.net/note/edit/111647
Del: integrated -- https://master.php.net/note/delete/111647/integrated
Del: useless -- https://master.php.net/note/delete/111647/useless
Del: bad code -- https://master.php.net/note/delete/111647/bad+code
Del: spam -- https://master.php.net/note/delete/111647/spam
Del: non-english -- https://master.php.net/note/delete/111647/non-english
Del: in docs -- https://master.php.net/note/delete/111647/in+docs
Del: other reasons-- https://master.php.net/note/delete/111647
Reject -- https://master.php.net/note/reject/111647
Search -- https://master.php.net/manage/user-notes.php