I don't have good answers for you as I'm not familiar with locking, but I'd suggest reading the comments in SQLite's os.h file (starting around line 91 at the moment) which I found interesting.
For Python it looks like it'd be something involving the fcntl module for Unix or the msvcrt module for Windows. -----Original Message----- From: sqlite-users <sqlite-users-boun...@mailinglists.sqlite.org> On Behalf Of Peng Yu Sent: Tuesday, July 02, 2019 3:26 PM To: SQLite mailing list <sqlite-users@mailinglists.sqlite.org> Subject: Re: [sqlite] How lock is implemented upon write? I not sure how to use os_unix.c. Are there any easy to follow examples in python? On Mon, Jul 1, 2019 at 9:08 PM Simon Slavin <slav...@bigfraud.org> wrote: > You might want to take a look at the standard VFSen: > > <https://www.sqlite.org/draft/vfs.html#standard_unix_vfses> > > At a low level, SQLite depends on the VFS for reliable locking. The main > parts of SQLite call a routine supplied by the VFS. The VFS does the > actual locking. > > If we didn't answer your question, feel free to post again telling us what > you're looking for. > _______________________________________________ > sqlite-users mailing list > sqlite-users@mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users > -- Regards, Peng _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users