クエリ追加

This commit is contained in:
ろむねこ 2024-01-17 12:08:24 +09:00
parent 2cfab24c76
commit b7cb4369d1
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -28,6 +28,10 @@ public interface DocumentDao {
@Query("SELECT * FROM Document WHERE id IN (:ids)")
List<DocumentEntity> findByIds(List<String> ids);
@Query("SELECT * FROM Document WHERE public_path = :publicPath")
DocumentEntity findByPublicPath(String publicPath);
// Insert
@Insert
void insert(DocumentEntity document);