github.com/ncruces/go-sqlite3@v0.15.1-0.20240520133447-53eef1510ff0/vfs/lock_other.go (about) 1 //go:build !(linux || darwin || windows || freebsd || openbsd || netbsd || dragonfly || illumos || sqlite3_flock) || sqlite3_nosys 2 3 package 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 11 const SupportsFileLocking = false 12 13 func (f *vfsFile) Lock(LockLevel) error { 14 return _IOERR_LOCK 15 } 16 17 func (f *vfsFile) Unlock(LockLevel) error { 18 return _IOERR_UNLOCK 19 } 20 21 func (f *vfsFile) CheckReservedLock() (bool, error) { 22 return false, _IOERR_CHECKRESERVEDLOCK 23 }