Expand description
Some tools for implementing VFS
Modules§
- x_
methods_ shim - Some x methods simulated using JS
Macros§
- bail
- Return error code if expr is true.
- check_
option - Unpack Option
. - check_
result - Unpack Ok
. - unused
- Mark unused parameter
Structs§
- Fragile
Confirmed - A
FragileConfirmed<T>
wraps a non sendableT
to be safely send to other threads. - MemChunks
File - Chunks storage in memory, used for temporary file
- SQLite
VfsFile - The actual pFile type in Vfs.
- VfsApp
Data - Wrapper for
pAppData
- VfsError
- Used to log and retrieve Vfs errors
Enums§
- Import
DbError - Register
VfsError - Possible errors when registering Vfs
Constants§
- SQLIT
E3_ HEADER - The header of the SQLite file is used to determine whether the imported file is legal.
Traits§
- SQLite
IoMethods - Abstraction of SQLite vfs’s io methods
- SQLite
Vfs - Abstraction of SQLite vfs
- VfsFile
- Some basic capabilities of file
- VfsStore
- Make changes to files
Functions§
- check_
db_ and_ page_ size - Check db and page size, page size must be a power of two between 512 and 65536 inclusive, db size must be a multiple of page size.
- check_
import_ db - Simple verification when importing db, and return page size;
- random_
name - get random name if zFileName is null and other cases
- register_
vfs - Register vfs general method
Type Aliases§
- VfsResult
- Wrapper for
Result