[Cppcms-users] [CPPDB] Creating SQLite3 databases
Brought to you by:
artyom-beilis
From: Klaim - J. L. <mj...@gm...> - 2011-07-28 12:51:28
|
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 |