Re: [Cppcms-users] [CPPDB] Creating SQLite3 databases
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2011-07-28 19:22:43
|
I don't see anything that prevents from you to execute a statement "CREATE DATABASE". So what you can do with sqlite API should be doable, if the statement fails it would throw if succeeds it would work. Artyom >________________________________ >From: Klaim - Joël Lamotte <mj...@gm...> >To: cpp...@li... >Sent: Thursday, July 28, 2011 3:51 PM >Subject: [Cppcms-users] [CPPDB] Creating SQLite3 databases > > >Hi, > > >I'm interested in using CPPDB as C++ wrapper to manipulate SQLite3 databases for an embedded application. > > >It's not clear from the documentation (or I probably missed something) if there is a way to create the database file on connection. >Is there a way? I understand that it's a SQLite-specific feature. >Do we have to create the database with the C interface first, then connect to it with CPPDB? >Or maybe connecting to a file that don't exists and executing "CREATE DATABASE" will work? >Am I correct in thinking that connecting to a database that don't exist will just throw an exception? > > >Joël Lamotte >------------------------------------------------------------------------------ >Got Input? Slashdot Needs You. >Take our quick survey online. Come on, we don't ask for help often. >Plus, you'll get a chance to win $100 to spend on ThinkGeek. >http://p.sf.net/sfu/slashdot-survey >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |