Class

CamelDB

since: 2.24

Description

class Camel.DB : GObject.Object {
  /* No available fields */
}
No description available.

Available since: 2.24

Ancestors

Constructors

camel_db_new
No description available.

since: 3.24

Functions

camel_db_camel_mir_free

Frees the record and all of its associated data.

since: 2.24

camel_db_error_quark
No description available.

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_get_column_name
No description available.

since: 2.24

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

camel_db_sqlize_string

Converts the string to be usable in the SQLite statements.

since: 2.24

Instance methods

camel_db_abort_transaction

Ends an ongoing transaction by ignoring the changes.

since: 2.24

camel_db_add_to_transaction

Adds a statement to an ongoing transaction.

since: 2.24

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_command

Executes an SQLite command.

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_create_folders_table

Creates a ‘folders’ table, if it doesn’t exist yet.

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_delete_uid

Deletes single mesage info in the given folder with the given UID.

since: 2.24

camel_db_delete_uids

Deletes a list of message UIDs as one transaction.

since: 2.24

camel_db_end_transaction

Ends an ongoing transaction by committing the changes.

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_filename
No description available.

since: 3.24

camel_db_get_folder_deleted_uids
No description available.

since: 2.24

camel_db_get_folder_junk_uids
No description available.

since: 2.24

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_prepare_message_info_table

Prepares message info table for the given folder.

since: 2.24

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_reset_folder_version

Sets a version number for the given folder.

since: 2.28

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_transaction_command

Runs the list of commands as a single transaction.

since: 2.24

camel_db_write_folder_info_record

Write the record to the ‘folders’ table.

since: 2.24

camel_db_write_message_info_record

Write the record to the message info table of the given folder.

since: 2.24

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

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.

Class structure

struct CamelDBClass {
  /* no available fields */
}
No description available.