mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Use drugs tablename
This commit is contained in:
parent
7f43b84b2e
commit
b2f54a81c4
1 changed files with 3 additions and 3 deletions
|
@ -9,12 +9,12 @@ import java.util.List;
|
|||
|
||||
@Dao
|
||||
public interface MedicinesDAO {
|
||||
@Query("SELECT * FROM medicines")
|
||||
@Query("SELECT * FROM drugs")
|
||||
List<Medicine> getAllMedicines();
|
||||
|
||||
@Query("SELECT * FROM medicines WHERE cip13 = :cip13")
|
||||
@Query("SELECT * FROM drugs WHERE cip13 = :cip13")
|
||||
Medicine getMedicineByCIP13(String cip13);
|
||||
|
||||
@Query("SELECT count(*) FROM medicines")
|
||||
@Query("SELECT count(*) FROM drugs")
|
||||
int getMedicineCount();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue