Hi all,

I wonder if someone can guide me how to open for reading the database file
of sqlite3 on WindowsXP, while the database is already opened by sqlite3
API.

I have an application that uses sqlite3 API, and open the database file.
While the file is opened (for reading) by sqlite3, I would like to copy the
database file (so to have a copy of the file). I guess I need to place a
shared lock on the file (like sqlite3 does when reading from the file). I
wonder what is the recommended way of doing that.

I saw that in http://www.sqlite.org/cvstrac/getfile/sqlite/src/os_win.cthere
are some functions that might help me doing that, for example:

int sqlite3WinOpenReadOnly(const char *zFilename, OsFile **pId)

but those functions are internal to sqlite3 (so they are not exposed in the
API). So I am not sure if it is a good idea to use them.

I will appreciate any help in this matter,

Thanks in advance,

Ran

Reply via email to