@@ -46,8 +46,8 @@ func WrapPersistWAL(f vfs.File) bool {
46
46
return false
47
47
}
48
48
49
- // WrapSetPersistentWAL helps wrap [vfs.FilePersistWAL].
50
- func WrapSetPersistentWAL (f vfs.File , keepWAL bool ) {
49
+ // WrapSetPersistWAL helps wrap [vfs.FilePersistWAL].
50
+ func WrapSetPersistWAL (f vfs.File , keepWAL bool ) {
51
51
if f , ok := f .(vfs.FilePersistWAL ); ok {
52
52
f .SetPersistWAL (keepWAL )
53
53
}
@@ -99,6 +99,14 @@ func WrapOverwrite(f vfs.File) error {
99
99
return sqlite3 .NOTFOUND
100
100
}
101
101
102
+ // WrapSyncSuper helps wrap [vfs.FileSync].
103
+ func WrapSyncSuper (f vfs.File , super string ) error {
104
+ if f , ok := f .(vfs.FileSync ); ok {
105
+ return f .SyncSuper (super )
106
+ }
107
+ return sqlite3 .NOTFOUND
108
+ }
109
+
102
110
// WrapCommitPhaseTwo helps wrap [vfs.FileCommitPhaseTwo].
103
111
func WrapCommitPhaseTwo (f vfs.File ) error {
104
112
if f , ok := f .(vfs.FileCommitPhaseTwo ); ok {
@@ -153,6 +161,13 @@ func WrapPragma(f vfs.File, name, value string) (string, error) {
153
161
return "" , sqlite3 .NOTFOUND
154
162
}
155
163
164
+ // WrapBusyHandler helps wrap [vfs.FilePragma].
165
+ func WrapBusyHandler (f vfs.File , handler func () bool ) {
166
+ if f , ok := f .(vfs.FileBusyHandler ); ok {
167
+ f .BusyHandler (handler )
168
+ }
169
+ }
170
+
156
171
// WrapSharedMemory helps wrap [vfs.FileSharedMemory].
157
172
func WrapSharedMemory (f vfs.File ) vfs.SharedMemory {
158
173
if f , ok := f .(vfs.FileSharedMemory ); ok {
0 commit comments