Re: DBD::mongDB

Darren Duncan <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Message-ID <[email protected]>
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.

-- Darren Duncan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.