On 4/12/17, David Raymond <david.raym...@tomtom.com> wrote: > > When I open a connection, what's > the best way to ensure I've connected to an existing file, and am not about > to create a brand new one by trying to find out?
Use sqlite3_open_v2() to create the database connection and make sure the flag parameter is SQLITE_OPEN_READWRITE or SQLITE_OPEN_READONLY and that it does not include the SQLITE_OPEN_CREATE bit. -- D. Richard Hipp d...@sqlite.org _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users