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
.
Structs§
- FilePtr
- Wrap the pFile pointer, which is often used in VFS implementation.
- Fragile
Comfirmed - A
FragileComfirmed<T>
wraps a non sendableT
to be safely send to other threads. - MemLinear
Store - Linear storage in memory, used for temporary DB
- MemPage
Store - Memory storage structure by page (block)
- SQLite
VfsFile - The actual pFile type in Vfs.
- VfsPtr
- Wrap the pVfs pointer, which is often used in VFS implementation.
Enums§
- 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
- Store
Control - Control the Store and make changes to files
- VfsStore
- Some basic capabilities of Store
Functions§
- 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