34#ifndef DT_TESTS_UNITTESTS_TESTDB_H
35#define DT_TESTS_UNITTESTS_TESTDB_H
59 .library =
":memory:",
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
void dt_collection_query_cleanup(void)
void dt_colorlabel_repository_cleanup(void)
Finalise whatever this repository still caches – today, nothing.
main.color_labels: which of the five colour labels are set on an image.
void dt_database_close(void)
dt_database_open_result_t dt_database_open(const dt_database_params_t *params)
gboolean dt_film_repository_insert(const char *folder)
int32_t dt_film_repository_find_by_folder(const char *folder)
void dt_history_repository_cleanup(void)
void dt_image_repository_cleanup(void)
Finalise the prepared statements. Called at shutdown, after the last cache release and before the dat...
int32_t dt_image_repository_find_by_film_and_filename(const int32_t film_id, const char *filename)
The image id for filename inside film roll film_id, or -1.
gboolean dt_image_repository_insert_import(const int32_t film_id, const char *filename, const int flags, const int64_t import_timestamp)
Insert a bare row for a file being imported, returning TRUE on success.
Reading and writing one dt_image_t to and from the library database. The SQL half of what used to be ...
void dt_preset_repository_cleanup(void)
Finalise the cached statements. See dt_colorlabel_repository_cleanup().
data.presets: a module's saved parameters, with the conditions under which it auto-applies.
void dt_selection_repository_cleanup(void)
Finalise whatever this repository still caches – today, nothing. See dt_colorlabel_repository_cleanup...
main.selected_images, and the memory.selected_backup it is pushed onto.
const float uint32_t state[4]
void dt_style_repository_cleanup(void)
void dt_tag_repository_cleanup(void)
Finalise whatever this repository still caches – today, nothing. See dt_colorlabel_repository_cleanup...
data.tags and main.tagged_images.
static int testdb_setup(void **state)
static int32_t testdb_make_film(const char *folder)
static int testdb_teardown(void **state)
static int32_t testdb_make_image(const int32_t film_id, const char *filename)