source: Dao: WIP, TagDao実装

This commit is contained in:
r-ca 2023-12-14 02:43:50 +09:00
parent 2ccc576c69
commit 2502cf64ec
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;
import androidx.room.Dao;
import androidx.room.Query;
import java.util.List;
import one.nem.lacerta.source.database.entity.Tag;
@Dao
public interface TagDao {
@Query("SELECT * FROM tag WHERE id = :id")
Tag findById(String id);
@Query("SELECT * FROM tag")
List<Tag> findAll();
@Query("SELECT * FROM tag WHERE id IN (:ids)")
List<Tag> findByIds(List<String> ids);
// WIP
// TODO-rca: Insert, Update, Delete
}