RE: [PEAR] Database abstraction layer
| From: | Brent Cook | Date: | Fri, 27 Dec 2002 00:53:10 +0000 |
| Subject: | RE: [PEAR] Database abstraction layer | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-3078@lists.php.net to get a copy of this message | ||
On Wed, 25 Dec 2002, Lukas Smith wrote:
>
> I have never used DBA nor do I know it well. I think it's a layer on top
> of PEAR DB that builds queries for you in order to make development
> faster.
>
DBA is really something else. It's just an object-abstraction for PHP's
dba* functions (see php.net/dba). It stores data in Berkeley-style
databases, which are simpler, but have a lot fewer features than the
relational DBM's that MDB and DB abstract.
Berkeley-style databases just store key->value pairs. They're a good way
to store and retrieve things like associative arrays, username->passwords,
things like that.
There are some extensions I'm working on with some people off the list to
add more features atop a DBA database, but DBA is the most stable and
finished bit so far. DBA_Relational adds some relational database type
functionality to DBA databases. A limited SQL parser is also available for
making queries, but it needs more work to be useful.
- Brent