Module utils

Source
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.
FragileComfirmed
A FragileComfirmed<T> wraps a non sendable T to be safely send to other threads.
MemLinearStore
Linear storage in memory, used for temporary DB
MemPageStore
Memory storage structure by page (block)
SQLiteVfsFile
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§

SQLITE3_HEADER
The header of the SQLite file is used to determine whether the imported file is legal.

Traits§

SQLiteIoMethods
Abstraction of SQLite vfs’s io methods
SQLiteVfs
Abstraction of SQLite vfs
StoreControl
Control the Store and make changes to files
VfsStore
Some basic capabilities of Store

Functions§

copy_to_slice
Copy Uint8Array to slice
copy_to_uint8_array
Copy slice and return new Uint8Array
copy_to_uint8_array_subarray
Copy slice to Unit8Array
copy_to_vec
Copy Uint8Array and return new Vec<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