@@ -47,35 +47,31 @@ to use the [`database/sql`](https://pkg.go.dev/database/sql)
4747driver with WAL mode databases you should disable connection pooling by calling
4848[ ` db.SetMaxOpenConns(1) ` ] ( https://pkg.go.dev/database/sql#DB.SetMaxOpenConns ) .
4949
50- #### POSIX Advisory Locks
50+ #### File Locking
5151
52- POSIX advisory locks, which SQLite uses, are
52+ POSIX advisory locks, which SQLite uses on Unix , are
5353[ broken by design] ( https://www.sqlite.org/src/artifact/2e8b12?ln=1073-1161 ) .
5454
5555On Linux, macOS and illumos, this module uses
5656[ OFD locks] ( https://www.gnu.org/software/libc/manual/html_node/Open-File-Description-Locks.html )
5757to synchronize access to database files.
58- OFD locks are fully compatible with process-associated POSIX advisory locks.
58+ OFD locks are fully compatible with POSIX advisory locks.
5959
6060On BSD Unixes, this module uses
6161[ BSD locks] ( https://man.freebsd.org/cgi/man.cgi?query=flock&sektion=2 ) .
62- On BSD Unixes, BSD locks _ should _ be compatible with process-associated POSIX advisory locks.
62+ On BSD Unixes, BSD locks are fully compatible with POSIX advisory locks.
6363
64- ##### TL;DR
64+ On Windows, this module uses ` LockFile ` , ` LockFileEx ` , and ` UnlockFile ` , like SQLite.
6565
66- In all platforms for which this package builds out of the box,
67- it should be safe to use it to access databases concurrently,
68- from multiple goroutines, processes, and
69- with _ other_ implementations of SQLite.
70-
71- If the package does not build for your platform,
72- see [ this] ( vfs/README.md#portability ) .
66+ On all other platforms, file locking is not supported, and you must use
67+ [ ` nolock=1 ` ] ( https://www.sqlite.org/uri.html#urinolock )
68+ to open database files.
7369
7470#### Testing
7571
7672The pure Go VFS is tested by running SQLite's
7773[ mptest] ( https://github.com/sqlite/sqlite/blob/master/mptest/mptest.c )
78- on Linux, macOS and Windows .
74+ on Linux, macOS, Windows and FreeBSD .
7975Performance is tested by running
8076[ speedtest1] ( https://github.com/sqlite/sqlite/blob/master/test/speedtest1.c ) .
8177
0 commit comments