mirror of
https://github.com/imcarlost/Friendlists.git
synced 2026-04-10 10:56:54 -04:00
create module and implement it
This commit is contained in:
@@ -18,6 +18,9 @@ interface PhotoDao {
|
||||
@get:Query("SELECT * FROM ${PhotoEntity.TABLE_NAME}")
|
||||
val all: List<PhotoEntity>
|
||||
|
||||
@Query("SELECT * FROM ${PhotoEntity.TABLE_NAME} WHERE albumId = :albumId ORDER BY id ASC")
|
||||
fun getPhotos(albumId: Int): List<PhotoEntity>
|
||||
|
||||
@Query("SELECT COUNT(*) FROM ${PhotoEntity.TABLE_NAME}")
|
||||
fun count(): Int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user