- Added query to get address

This commit is contained in:
Javier Varona 2018-10-17 22:15:19 -04:00
parent 76a53c12e1
commit 7681523252

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);
}