Image DAO
The class that serves as an interface between the app and the database for CRUD operations (Create, Read, Update, Delete) and retrieval of Image data, potentially including related entities.
Functions
Link copied to clipboard
Inserts a new GeoLocationEntity into the database.
Inserts a new ImageEntity object into the database.
Inserts an Image object into the database, including its associated geolocation. This method uses a transaction to ensure data consistency.
Link copied to clipboard
abstract suspend fun selectImageBy(latitude: Double, longitude: Double): ImageWithAdministrativeUnitNameAndGeoLocation?
Retrieves an Image object with its associated GeoLocation and AdministrativeUnitName, or null if no matching image is found.
Link copied to clipboard