Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,17 @@ type SAHPoolUtil = {
* currently in use, e.g. by an sqlite3 db.
*/
wipeFiles: () => Promise<void>;

/** Unregister this VFS and release file access handles, without clearing
* files. The database must be closed before calling this. */
pauseVfs: () => SAHPoolUtil;

/** Returns `true` if this VFS pool is paused */
isPaused: () => boolean;

/** Re-register this VFS and re-acquire file access handles. Any previously
* open databases will have to be re-opened after calling this. */
unpauseVfs: () => Promise<SAHPoolUtil>;
};

/** Exception class for reporting WASM-side allocation errors. */
Expand Down