83 "SELECT imgid FROM main.selected_images ORDER BY imgid DESC",
104 "DELETE FROM main.selected_images"
105 " WHERE imgid NOT IN"
106 " (SELECT imgid FROM memory.collected_images)",
NULL,
NULL,
NULL);
116 "INSERT INTO memory.selected_backup"
117 " SELECT * FROM main.selected_images",
NULL,
NULL,
NULL);
127 "INSERT INTO main.selected_images"
128 " SELECT * FROM memory.selected_backup",
NULL,
NULL,
NULL);
137 "SELECT imgid FROM main.selected_images", -1, &
stmt,
NULL);
sqlite3 * dt_database_get_sqlite3_global(void)
#define IS_NULL_PTR(p)
C is way too permissive with !=, == and if(var) checks, which can mean too many things depending on w...
void dt_selection_repository_select(const int32_t imgid)
Add imgid to the selection. Selecting an already-selected image does nothing.
void dt_selection_repository_clear(void)
Empty the selection.
void dt_selection_repository_cleanup(void)
Finalise whatever this repository still caches – today, nothing. See dt_colorlabel_repository_cleanup...
void dt_selection_repository_pop(void)
Copy memory.selected_backup back over the selection.
void dt_selection_repository_deselect_list(const char *ids)
Remove every id in ids from the selection.
void dt_selection_repository_deselect(const int32_t imgid)
Remove imgid from the selection.
void dt_selection_repository_drop_uncollected(void)
Drop selected images that are no longer in the current collection.
GList * dt_selection_repository_get_all(void)
Every selected image id, GINT_TO_POINTER, ASCENDING. Free with g_list_free().
int32_t dt_selection_repository_get_lowest_id(void)
The lowest selected image id, or UNKNOWN_IMAGE when nothing is selected.
void dt_selection_repository_push(void)
Copy the selection into memory.selected_backup, replacing what was there.
void dt_selection_repository_select_list(const char *ids)
Add every id in ids to the selection.
main.selected_images, and the memory.selected_backup it is pushed onto.
Checked wrappers around the sqlite3_* calls: trace the statement, assert the return code,...
#define DT_DEBUG_SQLITE3_EXEC(a, b, c, d, e)
#define DT_DEBUG_SQLITE3_PREPARE_V2(a, b, c, d, e)