ImageDao

interface ImageDao

The Data Access Object for the ImageRoomEntity class.

Functions

Link copied to clipboard
abstract suspend fun delete(image: ImageRoomEntity)

Deletes an image from the local database.

Link copied to clipboard
abstract fun getImageByImageUuid(imageUuid: UUID): ImageRoomEntity

Retrieves an image from the local database by image UUID.

Link copied to clipboard
abstract fun getImagesByRouteNumber(routeNumber: String): List<ImageRoomEntity>

Retrieves a list of images from the local database for a specified route number.

Link copied to clipboard

Retrieves a list of images from the local database that are marked for synchronization.

Link copied to clipboard
abstract suspend fun insert(image: ImageRoomEntity)

Inserts a single image into the local database. If a conflict occurs, the existing image is replaced.

Link copied to clipboard
abstract suspend fun insertAll(images: List<ImageRoomEntity>)

Inserts a list of images into the local database. If a conflict occurs, the existing images are replaced.

Link copied to clipboard
abstract suspend fun update(image: ImageRoomEntity)

Updates an image in the local database.