|
|
std::string | sql () |
| | Returns the SQL created by sqlgen to construct the table.
|
| |
| std::vector< domain::image > | read_latest (context ctx, std::uint32_t offset, std::uint32_t limit) |
| | Reads latest images with pagination support.
|
| |
| std::vector< domain::image > | read_latest_since (context ctx, std::chrono::system_clock::time_point modified_since) |
| | Reads latest images modified since a given timestamp.
|
| |
| std::uint32_t | get_total_image_count (context ctx) |
| | Gets the total count of active images.
|
| |
|
std::vector< domain::image > | read_all (context ctx) |
| | Reads all images (including historical versions).
|
| |
|
void | remove (context ctx, const std::string &image_id) |
| | Deletes an image by closing its temporal validity.
|
| |
|
|
void | write (context ctx, const domain::image &image) |
| | Writes an image to database.
|
| |
|
void | write (context ctx, const std::vector< domain::image > &images) |
| |
|
|
std::vector< domain::image > | read_latest (context ctx) |
| | Reads latest images, possibly filtered by image_id or key.
|
| |
|
std::vector< domain::image > | read_latest_by_id (context ctx, const std::string &image_id) |
| |
|
std::vector< domain::image > | read_latest_by_ids (context ctx, const std::vector< std::string > &image_ids) |
| |
|
std::vector< domain::image > | read_latest_by_key (context ctx, const std::string &key) |
| |
Reads and writes images off of data storage.