On 26 Jun 2012, at 5:27pm, deltagam...@gmx.net wrote: > Is it possible to check even if a db file exists and if necessary create it > from within c++ ? > So I would open the db file sqlite3_open("ah.db", &db); only if it really > exists ..
Look at the flags available to the _open_v2() function: <http://www.sqlite.org/c3ref/open.html> I think you want SQLITE_OPEN_READONLY . Simon. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users