diff options
author | 2025-01-14 18:30:55 +0000 | |
---|---|---|
committer | 2025-01-14 18:30:55 +0000 | |
commit | 81b66ad7e324dda72abc293433ecdaf4cf55c3a6 (patch) | |
tree | 7c2e1133ee2e5c6111d17be4937368f58115afe4 /vendor/github.com/ncruces/go-sqlite3/vfs/api.go | |
parent | bump uptrace/bun dependencies from 1.2.6 to 1.2.8 (#3645) (diff) | |
download | gotosocial-81b66ad7e324dda72abc293433ecdaf4cf55c3a6.tar.xz |
update ncruces/go-sqlite3 v0.21.3 -> v0.22.0, gruf/go-ffmpreg v0.6.4 -> v0.6.5 (#3646)
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/vfs/api.go')
-rw-r--r-- | vendor/github.com/ncruces/go-sqlite3/vfs/api.go | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/vfs/api.go b/vendor/github.com/ncruces/go-sqlite3/vfs/api.go index 330e8a2b1..f2531f223 100644 --- a/vendor/github.com/ncruces/go-sqlite3/vfs/api.go +++ b/vendor/github.com/ncruces/go-sqlite3/vfs/api.go @@ -65,14 +65,14 @@ type FileLockState interface { LockState() LockLevel } -// FilePersistentWAL extends File to implement the +// FilePersistWAL extends File to implement the // SQLITE_FCNTL_PERSIST_WAL file control opcode. // // https://sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlpersistwal -type FilePersistentWAL interface { +type FilePersistWAL interface { File - PersistentWAL() bool - SetPersistentWAL(bool) + PersistWAL() bool + SetPersistWAL(bool) } // FilePowersafeOverwrite extends File to implement the @@ -121,6 +121,15 @@ type FileOverwrite interface { Overwrite() error } +// FileSync extends File to implement the +// SQLITE_FCNTL_SYNC file control opcode. +// +// https://sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlsync +type FileSync interface { + File + SyncSuper(super string) error +} + // FileCommitPhaseTwo extends File to implement the // SQLITE_FCNTL_COMMIT_PHASETWO file control opcode. // @@ -162,6 +171,15 @@ type FilePragma interface { Pragma(name, value string) (string, error) } +// FileBusyHandler extends File to implement the +// SQLITE_FCNTL_BUSYHANDLER file control opcode. +// +// https://sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlbusyhandler +type FileBusyHandler interface { + File + BusyHandler(func() bool) +} + // FileSharedMemory extends File to possibly implement // shared-memory for the WAL-index. // The same shared-memory instance must be returned @@ -191,3 +209,8 @@ type fileControl interface { File fileControl(ctx context.Context, mod api.Module, op _FcntlOpcode, pArg uint32) _ErrorCode } + +type filePDB interface { + File + SetDB(any) +} |