Module sql

Source
Expand description

Β§SQLite wrapper.

ModulesΒ§

migrations πŸ”’
Migrations module.
pool πŸ”’
SQLite connection pool.

StructsΒ§

Sql
A wrapper around the underlying Sqlite3 object.

TraitsΒ§

ToSql
Extension to [rusqlite::ToSql] trait which also includes Send and Sync.

FunctionsΒ§

housekeeping
Cleanup the account to restore some storage and optimize the database.
incremental_vacuum πŸ”’
is_file_in_use πŸ”’
maybe_add_file πŸ”’
maybe_add_from_param πŸ”’
new_connection πŸ”’
Creates a new SQLite connection.
prune_tombstones πŸ”’
Removes from the database stale locally deleted messages that also don’t have a server UID.
remove_unused_files
Enumerates used files in the blobdir and removes unused ones.
row_get_vec
Get the value of a column idx of the row as Vec<u8>.