Re: [Cppcms-users] MongoDB and Hypertable support
Brought to you by:
artyom-beilis
From: Shiv S. D. <shi...@gm...> - 2012-07-14 17:01:37
|
Hi, You can wrap several document based DBs APis to provide a consistent familiar interface to user. Only requirement is that they should return similar sort of data if not same. On Fri, Jul 13, 2012 at 11:32 PM, 陈抒 <csf...@gm...> wrote: > I used CppCMS with MongoDB for several months. > Don't need to wrap it. MongoDB is a document database(or NoSQL database), I > don't think you could get any benefit from wrapping it. > > > > 陈抒 > Best regards > http://blog.csdn.net/sheismylife > > > > On Sat, Jul 14, 2012 at 1:02 AM, Daniel Vallejos <chi...@gm...> > wrote: >> >> I am curious. >> >> What is the benefit for wrapping mongodb instead of just using native >> mongodb C++ API in cppcms? >> >> Bests. >> >> Daniel Vallejos. >> >> On Thu, 2012-07-12 at 19:20 +0530, Shiv Shankar Dayal wrote: >> > I think as a separation I can put all code in a namespace inside cppdb >> > like nosql. The problem is that these are not like RDBMS and interface >> > will have to use individual DBs C++ API. So, to nullify the effect on >> > existing cppdb I think putting new code in a new namespace should >> > suffice. >> > Once the wrappers are complete and interface is similar or same we can >> > go forward or leave it inside the new namespace if interfaces are not >> > alike. >> > >> > On Thu, Jul 12, 2012 at 6:36 PM, Artyom Beilis <art...@ya...> >> > wrote: >> > > See, technically, if your queries results are tables and data-types >> > > are >> > > string, datetime, integer, floating point, blob >> > > you can develop your own backend for CppDB. And than do queries like: >> > > >> > > cppdb::session db("mongodb:some-parameter=somevalue"); >> > > cppdb::result r = db << "db.users.find({'last_name': 'Smith'})"; >> > > while(r.next()) { >> > > std::string first_name = r.get<std::string>("first_name"); >> > > } >> > > >> > > But I'm not sure it would be the best approach >> > > >> > > Still, if you want to take a look on: >> > > >> > > http://cppcms.com/sql/cppdb/backenddev.html >> > > >> > > >> > > >> > > Artyom Beilis >> > > -------------- >> > > CppCMS - C++ Web Framework: http://cppcms.com/ >> > > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >> > > >> > > ________________________________ >> > > From: Shiv Shankar Dayal <shi...@gm...> >> > > To: cpp...@li... >> > > Sent: Thursday, July 12, 2012 3:25 PM >> > > Subject: Re: [Cppcms-users] MongoDB and Hypertable support >> > > >> > > Then this means that I should start some new module like CppNoSQL. >> > > How difficult it can be to adapt such a module to CppCMS? >> > > >> > > On Thu, Jul 12, 2012 at 5:50 PM, Artyom Beilis <art...@ya...> >> > > wrote: >> > >> See, CppDB is an engine for relational databases - SQL, it is >> > >> designed for >> > >> them. >> > >> >> > >> So I don't really see how can you fit stuff like MongoDB to such >> > >> database >> > >> layer. >> > >> >> > >> Artyom Beilis >> > >> -------------- >> > >> CppCMS - C++ Web Framework: http://cppcms.com/ >> > >> CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ >> > >> >> > >> ________________________________ >> > >> From: Shiv Shankar Dayal <shi...@gm...> >> > >> To: cpp...@li... >> > >> Sent: Thursday, July 12, 2012 2:08 PM >> > >> Subject: [Cppcms-users] MongoDB and Hypertable support >> > >> >> > >> Hi, >> > >> >> > >> I want to add MongoDB and Hypertable (and possibly more noSQL DBs) >> > >> support to CppDB. What do you think is the best approach to achieve >> > >> this? >> > >> >> > >> -- >> > >> Best regards, >> > >> Shiv Shankar Dayal >> > >> >> > >> >> > >> >> > >> ------------------------------------------------------------------------------ >> > >> Live Security Virtual Conference >> > >> Exclusive live event will cover all the ways today's security and >> > >> threat landscape has changed and how IT managers can respond. >> > >> Discussions >> > >> will include endpoint security, mobile security and the latest in >> > >> malware >> > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > >> _______________________________________________ >> > >> Cppcms-users mailing list >> > >> Cpp...@li... >> > >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> ------------------------------------------------------------------------------ >> > >> Live Security Virtual Conference >> > >> Exclusive live event will cover all the ways today's security and >> > >> threat landscape has changed and how IT managers can respond. >> > >> Discussions >> > >> will include endpoint security, mobile security and the latest in >> > >> malware >> > >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > >> _______________________________________________ >> > >> Cppcms-users mailing list >> > >> Cpp...@li... >> > >> https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > >> >> > > >> > > >> > > >> > > -- >> > > Best regards, >> > > Shiv Shankar Dayal >> > > >> > > >> > > ------------------------------------------------------------------------------ >> > > Live Security Virtual Conference >> > > Exclusive live event will cover all the ways today's security and >> > > threat landscape has changed and how IT managers can respond. >> > > Discussions >> > > will include endpoint security, mobile security and the latest in >> > > malware >> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > _______________________________________________ >> > > Cppcms-users mailing list >> > > Cpp...@li... >> > > https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > >> > > >> > > >> > > >> > > ------------------------------------------------------------------------------ >> > > Live Security Virtual Conference >> > > Exclusive live event will cover all the ways today's security and >> > > threat landscape has changed and how IT managers can respond. >> > > Discussions >> > > will include endpoint security, mobile security and the latest in >> > > malware >> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> > > _______________________________________________ >> > > Cppcms-users mailing list >> > > Cpp...@li... >> > > https://lists.sourceforge.net/lists/listinfo/cppcms-users >> > > >> > >> > >> > >> >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Cppcms-users mailing list >> Cpp...@li... >> https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Best regards, Shiv Shankar Dayal |