TxHistoryQueries

class TxHistoryQueries(driver: SqlDriver) : TransacterImpl

Constructors

Link copied to clipboard
constructor(driver: SqlDriver)

Functions

Link copied to clipboard
fun delete(idem: ByteArray): QueryResult<Long>
Link copied to clipboard
fun deleteAll(): QueryResult<Long>
Link copied to clipboard
fun get(idem: ByteArray): Query<TxHistory>
fun <T : Any> get(idem: ByteArray, mapper: (idem: ByteArray, txData: ByteArray, date: Long, confirmedHeight: Long, confirmedBlockHash: ByteArray?, netAmount: Long, note: String?, priceWhenIssued: String?, priceWhatFiat: String?) -> T): Query<T>
Link copied to clipboard
fun getAll(): Query<TxHistory>
fun <T : Any> getAll(mapper: (idem: ByteArray, txData: ByteArray, date: Long, confirmedHeight: Long, confirmedBlockHash: ByteArray?, netAmount: Long, note: String?, priceWhenIssued: String?, priceWhatFiat: String?) -> T): Query<T>
Link copied to clipboard
fun <T : Any> getAllByAmount(mapper: (idem: ByteArray, txData: ByteArray, date: Long, confirmedHeight: Long, confirmedBlockHash: ByteArray?, netAmount: Long, note: String?, priceWhenIssued: String?, priceWhatFiat: String?) -> T): Query<T>
Link copied to clipboard
fun getAllByDate(startingDate: Long, count: Long): Query<TxHistory>
fun <T : Any> getAllByDate(startingDate: Long, count: Long, mapper: (idem: ByteArray, txData: ByteArray, date: Long, confirmedHeight: Long, confirmedBlockHash: ByteArray?, netAmount: Long, note: String?, priceWhenIssued: String?, priceWhatFiat: String?) -> T): Query<T>
Link copied to clipboard
fun getAllByDateForwards(startingDate: Long, count: Long): Query<TxHistory>
fun <T : Any> getAllByDateForwards(startingDate: Long, count: Long, mapper: (idem: ByteArray, txData: ByteArray, date: Long, confirmedHeight: Long, confirmedBlockHash: ByteArray?, netAmount: Long, note: String?, priceWhenIssued: String?, priceWhatFiat: String?) -> T): Query<T>
Link copied to clipboard
fun getAllByDateOld(startingDate: Long, count: Long): Query<TxHistory>
fun <T : Any> getAllByDateOld(startingDate: Long, count: Long, mapper: (idem: ByteArray, txData: ByteArray, date: Long, confirmedHeight: Long, confirmedBlockHash: ByteArray?, netAmount: Long, note: String?, priceWhenIssued: String?, priceWhatFiat: String?) -> T): Query<T>
Link copied to clipboard
fun getAtHeight(commitHeights: Long): Query<TxHistory>
fun <T : Any> getAtHeight(commitHeights: Long, mapper: (idem: ByteArray, txData: ByteArray, date: Long, confirmedHeight: Long, confirmedBlockHash: ByteArray?, netAmount: Long, note: String?, priceWhenIssued: String?, priceWhatFiat: String?) -> T): Query<T>
Link copied to clipboard
fun getByIdem(idem: ByteArray): Query<TxHistory>
fun <T : Any> getByIdem(idem: ByteArray, mapper: (idem: ByteArray, txData: ByteArray, date: Long, confirmedHeight: Long, confirmedBlockHash: ByteArray?, netAmount: Long, note: String?, priceWhenIssued: String?, priceWhatFiat: String?) -> T): Query<T>
Link copied to clipboard
fun insert(idem: ByteArray, txData: ByteArray, date: Long, confirmedHeight: Long, confirmedBlockHash: ByteArray?, netAmount: Long, note: String?, priceWhenIssued: String?, priceWhatFiat: String?): QueryResult<Long>
Link copied to clipboard
fun size(): Query<Long>
Link copied to clipboard
open override fun transaction(noEnclosing: Boolean, body: TransactionWithoutReturn.() -> Unit)
Link copied to clipboard
open override fun <R> transactionWithResult(noEnclosing: Boolean, bodyWithReturn: TransactionWithReturn<R>.() -> R): R
Link copied to clipboard
fun txInvolvesAddress(txIdem: ByteArray?, address: ByteArray?): QueryResult<Long>
Link copied to clipboard
fun txWithAddress(address: ByteArray?): Query<TxWithAddress>
fun <T : Any> txWithAddress(address: ByteArray?, mapper: (txIdem: ByteArray?) -> T): Query<T>
Link copied to clipboard
fun update(txData: ByteArray, time: Long, commitHeight: Long, commitBlockHash: ByteArray?, netAmount: Long, note: String?, priceWhenIssued: String?, priceWhatFiat: String?, idem: ByteArray): QueryResult<Long>
Link copied to clipboard
fun upsert(idem: ByteArray, txData: ByteArray, date: Long, confirmedHeight: Long, confirmedBlockHash: ByteArray?, netAmount: Long, note: String?, priceWhenIssued: String?, priceWhatFiat: String?): QueryResult<Long>