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
Comfirmed - A
FragileComfirmed<T>
wraps a non sendableT
to be safely send to other threads. - MemLinear
File - Linear storage in memory, used for temporary DB
- 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;
- copy_
to_ slice - Copy
Uint8Array
toslice
- copy_
to_ uint8_ array - Copy
slice
and return newUint8Array
- copy_
to_ uint8_ array_ subarray - Copy
slice
toUnit8Array
- copy_
to_ vec - Copy
Uint8Array
and return newVec<u8>
- get_
random_ name - get random name if zFileName is null and other cases
- page_
read - Generic function for reading by page (block)
- register_
vfs - Register vfs general method
Type Aliases§
- VfsResult
- Wrapper for
Result