1//go:build !(linux || darwin || windows || freebsd || openbsd || netbsd || dragonfly || illumos || sqlite3_flock || sqlite3_dotlk)
2
3package vfs
4
5// SupportsFileLocking is false on platforms that do not support file locking.
6// To open a database file on those platforms,
7// you need to use the [nolock] or [immutable] URI parameters.
8//
9// [nolock]: https://sqlite.org/uri.html#urinolock
10// [immutable]: https://sqlite.org/uri.html#uriimmutable
11const SupportsFileLocking = false
12
13func (f *vfsFile) Lock(LockLevel) error {
14 return _IOERR_LOCK
15}
16
17func (f *vfsFile) Unlock(LockLevel) error {
18 return _IOERR_UNLOCK
19}
20
21func (f *vfsFile) CheckReservedLock() (bool, error) {
22 return false, _IOERR_CHECKRESERVEDLOCK
23}