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

View File

@ -28,9 +28,8 @@ 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);
@Query("SELECT * FROM Document WHERE public_path = :publicPath LIMIT :limit")
List<DocumentEntity> findByPublicPathWithLimit(String publicPath, int limit);
// Insert
@Insert