source: Dao: WIP, LibraryDao実装

This commit is contained in:
r-ca 2023-12-14 02:42:25 +09:00
parent b4ee93cd5c
commit 2ccc576c69
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -1,4 +1,24 @@
package one.nem.lacerta.source.database.dao; package one.nem.lacerta.source.database.dao;
import androidx.room.Dao;
import androidx.room.Query;
import java.util.List;
import one.nem.lacerta.source.database.entity.Library;
@Dao
public interface LibraryDao { public interface LibraryDao {
@Query("SELECT * FROM library WHERE id = :id")
Library findById(String id);
@Query("SELECT * FROM library")
List<Library> findAll();
@Query("SELECT * FROM library WHERE id IN (:ids)")
List<Library> findByIds(List<String> ids);
// WIP
// TODO-rca: Insert, Update, Delete
} }