- Added query to get address
This commit is contained in:
parent
76a53c12e1
commit
7681523252
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,9 @@ public interface BitcoinAddressDao {
|
||||||
@Query("SELECT COUNT(*) FROM bitcoin_address ba WHERE ba.address = :address")
|
@Query("SELECT COUNT(*) FROM bitcoin_address ba WHERE ba.address = :address")
|
||||||
Boolean addressExists(String address);
|
Boolean addressExists(String address);
|
||||||
|
|
||||||
|
@Query("SELECT * FROM bitcoin_address ba WHERE ba.address = :address")
|
||||||
|
BitcoinAddress getdadress(String address);
|
||||||
|
|
||||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||||
public long[] insertBitcoinAddresses(BitcoinAddress... addresses);
|
public long[] insertBitcoinAddresses(BitcoinAddress... addresses);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue