Re: DBD::mongDB
Darren Duncan <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase.devel |
|---|---|
| Message-ID | <[email protected]> |
Darren Duncan wrote: > Rudy Lippan wrote: >> Does anyone know if there are any DBD::drivers that do not use some >> variant of SQL? I ask because I am planing on implementing the driver >> using mongoDB's native query language initially, but having a >> query_language attribute so that It would be possible to add SQL later >> if desired/wanted. > > As I understand it, DBI is agnostic to the database query language in > use, same as ODBC etc is, and same as Muldis::Rosetta is, and so an > implementer of the API it defines can use any query language it wants, > or even support several. > > I recommend just supporting MongoDB's native query language initially as > per your plan. If the ability to query in SQL is desired then you can > provide that as an alternative, but under no circumstances should the > ability to use the DBMS' native query language be denied as an option to > users. Furthermore, to answer your other question ... I'm not aware of any existing DBD:: that doesn't take some variant of SQL. However, when I get around to making a DBD:: for my Muldis DBMS, it will support *both* Muldis D and SQL. -- Darren Duncan