On 4/12/17, David Raymond <[email protected]> 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 [email protected] _______________________________________________ sqlite-users mailing list [email protected] http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

