TxoQueries

class TxoQueries(driver: SqlDriver) : TransacterImpl

Constructors

Link copied to clipboard
constructor(driver: SqlDriver)

Functions

Link copied to clipboard
fun delete(id: ByteArray): QueryResult<Long>
Link copied to clipboard
fun deleteAll(): QueryResult<Long>
Link copied to clipboard
fun get(id: ByteArray): Query<Txo>
fun <T : Any> get(id: ByteArray, mapper: (id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?) -> T): Query<T>
Link copied to clipboard
fun getAll(): Query<Txo>
fun <T : Any> getAll(mapper: (id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?) -> T): Query<T>
Link copied to clipboard
fun getAllUtxo(): Query<Txo>
fun <T : Any> getAllUtxo(mapper: (id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?) -> T): Query<T>
Link copied to clipboard
fun getByAddress(address: String?): Query<Txo>
fun <T : Any> getByAddress(address: String?, mapper: (id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?) -> T): Query<T>
Link copied to clipboard
fun getByContract(contractId: ByteArray?): Query<Txo>
fun <T : Any> getByContract(contractId: ByteArray?, mapper: (id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?) -> T): Query<T>
Link copied to clipboard
fun getMany(ids: Collection<ByteArray>): Query<Txo>
fun <T : Any> getMany(ids: Collection<ByteArray>, mapper: (id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?) -> T): Query<T>
Link copied to clipboard
fun getSomeUtxo(numRecords: Long): Query<Txo>
fun <T : Any> getSomeUtxo(numRecords: Long, mapper: (id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?) -> T): Query<T>
Link copied to clipboard
fun getUtxoByAddress(address: String?): Query<Txo>
fun <T : Any> getUtxoByAddress(address: String?, mapper: (id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?) -> T): Query<T>
Link copied to clipboard
fun getUtxoByAmount(minAmt: Long, maxAmt: Long): Query<Txo>
fun <T : Any> getUtxoByAmount(minAmt: Long, maxAmt: Long, mapper: (id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?) -> T): Query<T>
Link copied to clipboard
fun getUtxoByContract(contractId: ByteArray?): Query<Txo>
fun <T : Any> getUtxoByContract(contractId: ByteArray?, mapper: (id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?) -> T): Query<T>
Link copied to clipboard
fun getUtxoByGroupAmount(minAmt: Long, maxAmt: Long): Query<Txo>
fun <T : Any> getUtxoByGroupAmount(minAmt: Long, maxAmt: Long, mapper: (id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?) -> T): Query<T>
Link copied to clipboard
fun insert(id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?): 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 update(spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?, id: ByteArray): QueryResult<Long>
Link copied to clipboard
fun upsert(id: ByteArray, spendable: ByteArray, date: Long, spentDate: Long, amount: Long, groupAmount: Long, groupId: ByteArray?, address: String?, contractId: ByteArray?): QueryResult<Long>
Link copied to clipboard
fun utxoSize(): Query<Long>