Right. I'll go look at the source and confirm or just write it myself using POSIX open() which would be easy. I guess I was just asking what kind of locks you are talking about since I'm not familiar with file locking. In other words, if I did a POSIX open("filename", O_RDONLY); or even fopen("filename", "r") under Linux, would I be safe? Under what conditions would an open() create a lock that would cause problems?

Josh


On 19 Nov 2013, at 5:05pm, Joshua Grauman <jnf...@grauman.com> wrote:

Ok, thanks again for the tips, I'll change the ROLLBACK to END.

I'm assuming if I open the file read-only it shouldn't lock, right? I'm using Qt, but I 
send it a read-only parameter which I assume translates into something like a POSIX 
open("filename", O_RDONLY);

I hope a Qt expert can answer this question.  It would be bad of me to assume 
that the default permissions on a Qt open were the same as the default 
permissions on a POSIX open.

Simon.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to