- Added query to get address

feat_androidx_migration
Javier Varona 2018-10-17 22:15:19 -04:00
parent 76a53c12e1
commit 7681523252
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ public interface BitcoinAddressDao {
@Query("SELECT COUNT(*) FROM bitcoin_address ba WHERE ba.address = :address")
Boolean addressExists(String address);
@Query("SELECT * FROM bitcoin_address ba WHERE ba.address = :address")
BitcoinAddress getdadress(String address);
@Insert(onConflict = OnConflictStrategy.REPLACE)
public long[] insertBitcoinAddresses(BitcoinAddress... addresses);
}