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.
unused
Mark unused parameter

Structs§

FragileConfirmed
A FragileConfirmed<T> wraps a non sendable T to be safely send to other threads.
MemChunksFile
Chunks storage in memory, used for temporary file
SQLiteVfsFile
The actual pFile type in Vfs.
VfsAppData
Wrapper for pAppData
VfsError
Used to log and retrieve Vfs errors

Enums§

ImportDbError
RegisterVfsError
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
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