Re: DB_Mongo Package Proposal
| From: | Kristina Chodorow | Date: | Mon, 16 Mar 2009 21:36:00 +0000 |
| Subject: | Re: DB_Mongo Package Proposal | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-51628@lists.php.net to get a copy of this message | ||
> Why not a MDB2 driver instead ?
>
As I understand it, the MDB2 is for relational databases and seems like it
wouldn't be a good fit for an object database API. It looks like most of
the functions described by MDB2 don't apply to MongoDB (transactions,
escaping, reverse module, and so on). Also, we use different terminology
than RDBMS, for example, "collection" instead of "table" and not having any
concept of row or column. An object database is like a bunch of bags of
objects and no object needs to share any sort of schema with any other
(although it's usually more useful if they do!).
So, it seems like implementing MDB2_Driver_Mongo wouldn't be a good idea,
but let me know if I'm misunderstanding MDB2 or what you're suggesting.
Also I would suggest not to call it DB_Mongo as people might confuse
> it with a driver for the deprecated DB package.
>
Sorry, I thought I needed the DB prefix since it is in the Database
category. I'll fix it.
Thanks for the feedback.