WIP リミットありの全件取得を実装

This commit is contained in:
r-ca 2023-12-17 23:27:34 +09:00
parent 4c20c7411b
commit e8dc956b7d
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -22,6 +22,9 @@ public interface DocumentDao {
@Query("SELECT * FROM Document")
List<DocumentEntity> findAll();
@Query("SELECT * FROM Document LIMIT :limit")
List<DocumentEntity> getAllWithLimit(int limit);
@Query("SELECT * FROM Document WHERE id IN (:ids)")
List<DocumentEntity> findByIds(List<String> ids);