Class
CamelDB
since: 2.24
Functions
camel_db_free_sqlized_string
Frees a string previosuly returned by camel_db_sqlize_string().
since: 2.24
camel_db_get_column_ident
Traverses column name from index index
into an enum
CamelDBKnownColumnNames
value. The col_names
contains ncols
columns.
First time this is called is created the hash
from col_names indexes into
the enum, and this is reused for every other call. The function expects
that column names are returned always in the same order. When all rows
are read the hash
table can be freed with g_hash_table_destroy().
since: 3.4
camel_db_release_cache_memory
Instructs sqlite to release its memory, if possible. This can be avoided when CAMEL_SQLITE_FREE_CACHE environment variable is set.
since: 3.24
Instance methods
camel_db_begin_transaction
Begins transaction. End it with camel_db_end_transaction()
or camel_db_abort_transaction().
since: 2.24
camel_db_clear_folder_summary
Deletes the given folder from the ‘folders’ table and empties its message info table.
since: 2.24
camel_db_count_deleted_message_info
Counts how many deleted messages is stored in the given table.
since: 2.24
camel_db_count_junk_message_info
Counts how many junk messages is stored in the given table.
since: 2.24
camel_db_count_message_info
Executes a COUNT() query (like “SELECT COUNT(*) FROM table”) and provides the result of it as an unsigned 32-bit integer.
since: 2.26
camel_db_count_total_message_info
Counts how many messages is stored in the given table.
since: 2.24
camel_db_count_unread_message_info
Counts how many unread messages is stored in the given table.
since: 2.24
camel_db_count_visible_message_info
Counts how many visible (not deleted and not junk) messages is stored in the given table.
since: 2.24
camel_db_count_visible_unread_message_info
Counts how many visible (not deleted and not junk) and unread messages is stored in the given table.
since: 2.24
camel_db_delete_folder
Deletes the given folder from the ‘folders’ table and also drops its message info table.
since: 2.24
camel_db_flush_in_memory_transactions
A pair function for camel_db_start_in_memory_transactions(),
to commit the changes to folder_name
and free the in-memory table.
since: 2.26
camel_db_get_folder_uids
Fills hash with uid->GUINT_TO_POINTER (flag). Use camel_pstring_free()
to free the keys of the hash
.
since: 2.24
camel_db_maybe_run_maintenance
Runs a cdb
maintenance, which includes vacuum, if necessary.
since: 3.16
camel_db_read_folder_info_record
Reads folder information for the given folder and stores it into the record
.
since: 2.24
camel_db_read_message_info_record_with_uid
Selects single message info for the given uid
in folder folder_name
and calls
the callback
for it.
since: 2.24
camel_db_read_message_info_records
Reads all mesasge info records for the given folder and calls callback
for them.
since: 2.24
camel_db_rename_folder
Renames tables for the old_folder_name
to be used with new_folder_name
.
since: 2.24
camel_db_select
Executes a SELECT staement and calls the callback
for each selected row.
since: 2.24
camel_db_set_collate
Defines a collation collate
, which can be used in SQL (SQLite)
statement as a collation function. The func
is called when
colation is used.
since: 2.24
camel_db_start_in_memory_transactions
Creates an in-memory table for a batch transactions. Use camel_db_flush_in_memory_transactions()
to commit the changes and free the in-memory table.
since: 2.26
camel_db_write_message_info_record
Write the record
to the message info table of the given folder.
since: 2.24
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.