Paul wrote: > My goal is to make structure initialization of an *abstract* database atomic. > [...] if database file is missing it must be created and initialized.
<http://www.sqlite.org/transactional.html> Just do the check for the database structure and the initialization inside a transaction. > SQLITE_OPEN_EXCLUSIVE This flag does not mean what you think it means, and is used only internally; you are not allowed to use it. Anyway, transactions are automatically exclusive. Regards, Clemens _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users