TxDatabase

interface TxDatabase

Inheritors

Functions

Link copied to clipboard
abstract fun clear()

Delete all items

Link copied to clipboard
abstract fun delete(vararg idems: ByteArray)
open fun delete(vararg idems: Hash256)
Link copied to clipboard
abstract fun forEach(doit: (TransactionHistory) -> Boolean)
Link copied to clipboard
abstract fun forEachWithAddress(addr: PayAddress, doit: (TransactionHistory) -> Unit)
Link copied to clipboard
abstract fun read(idem: Hash256): TransactionHistory?

Read one item

Link copied to clipboard

Read all items and return a map of each entry

Link copied to clipboard
abstract fun size(): Long
Link copied to clipboard
abstract fun write(vararg txh: TransactionHistory?)
Link copied to clipboard

Insert or overwrite all items in the provided map into the database

Link copied to clipboard

Insert or overwrite all changed items in the provided map into the database