Re: [Cppcms-users] MongoDB and Hypertable support
Brought to you by:
artyom-beilis
From: Daniel V. <chi...@gm...> - 2012-07-13 17:03:01
|
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 > > > > > |