20 #ifndef RIPPLE_CORE_RELATIONALDBINTERFACESQLITE_H_INCLUDED
21 #define RIPPLE_CORE_RELATIONALDBINTERFACESQLITE_H_INCLUDED
23 #include <ripple/app/rdb/RelationalDBInterface.h>
virtual std::optional< LedgerInfo > getLimitedNewestLedgerInfo(LedgerIndex ledgerFirstIndex)=0
getLimitedNewestLedgerInfo Returns info of newest ledger from ledgers with sequences greater or equal...
virtual uint32_t getKBUsedTransaction()=0
getKBUsedTransaction Returns space used by transaction database.
virtual std::pair< MetaTxsList, std::optional< AccountTxMarker > > oldestAccountTxPageB(AccountTxPageOptions const &options)=0
oldestAccountTxPageB Returns oldest transactions in binary form for given account which match given c...
virtual AccountTxs getNewestAccountTxs(AccountTxOptions const &options)=0
getNewestAccountTxs Returns newest transactions for given account which match given criteria starting...
virtual void deleteBeforeLedgerSeq(LedgerIndex ledgerSeq)=0
deleteBeforeLedgerSeq Deletes all ledgers with given sequence and all sequences below it.
virtual std::pair< AccountTxs, std::optional< AccountTxMarker > > newestAccountTxPage(AccountTxPageOptions const &options)=0
newestAccountTxPage Returns newest transactions for given account which match given criteria starting...
virtual std::size_t getAccountTransactionCount()=0
getAccountTransactionCount Returns number of account transactions.
virtual bool saveValidatedLedger(std::shared_ptr< Ledger const > const &ledger, bool current)=0
saveValidatedLedger Saves ledger into database.
virtual std::optional< LedgerIndex > getTransactionsMinLedgerSeq()=0
getTransactionsMinLedgerSeq Returns minimum ledger sequence among records in the Transactions table.
virtual std::optional< LedgerInfo > getLimitedOldestLedgerInfo(LedgerIndex ledgerFirstIndex)=0
getLimitedOldestLedgerInfo Returns info of oldest ledger from ledgers with sequences greater or equal...
virtual MetaTxsList getOldestAccountTxsB(AccountTxOptions const &options)=0
getOldestAccountTxsB Returns oldest transactions in binary form for given account which match given c...
virtual void deleteTransactionsBeforeLedgerSeq(LedgerIndex ledgerSeq)=0
deleteTransactionsBeforeLedgerSeq Deletes all transactions with given ledger sequence and all sequenc...
virtual std::pair< MetaTxsList, std::optional< AccountTxMarker > > newestAccountTxPageB(AccountTxPageOptions const &options)=0
newestAccountTxPageB Returns newest transactions in binary form for given account which match given c...
virtual AccountTxs getOldestAccountTxs(AccountTxOptions const &options)=0
getOldestAccountTxs Returns oldest transactions for given account which match given criteria starting...
virtual uint32_t getKBUsedLedger()=0
getKBUsedLedger Returns space used by ledger database.
virtual void closeTransactionDB()=0
Closes the transaction database.
virtual std::variant< AccountTx, TxSearched > getTransaction(uint256 const &id, std::optional< ClosedInterval< uint32_t >> const &range, error_code_i &ec)=0
getTransaction Returns transaction with given hash.
@ current
This was a new validation and was added.
ClosedInterval< T > range(T low, T high)
Create a closed range interval.
virtual void deleteTransactionByLedgerSeq(LedgerIndex ledgerSeq)=0
deleteTransactionByLedgerSeq Deletes transactions from ledger with given sequence.
virtual MetaTxsList getNewestAccountTxsB(AccountTxOptions const &options)=0
getNewestAccountTxsB Returns newest transactions in binary form for given account which match given c...
virtual void deleteAccountTransactionsBeforeLedgerSeq(LedgerIndex ledgerSeq)=0
deleteAccountTransactionsBeforeLedgerSeq Deletes all account transactions with given ledger sequence ...
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual std::pair< AccountTxs, std::optional< AccountTxMarker > > oldestAccountTxPage(AccountTxPageOptions const &options)=0
oldestAccountTxPage Returns oldest transactions for given account which match given criteria starting...
virtual uint32_t getKBUsedAll()=0
getKBUsedAll Returns space used by all databases.
boost::icl::closed_interval< T > ClosedInterval
A closed interval over the domain T.
virtual std::size_t getTransactionCount()=0
getTransactionCount Returns number of transactions.
virtual std::optional< LedgerIndex > getAccountTransactionsMinLedgerSeq()=0
getAccountTransactionsMinLedgerSeq Returns minimum ledger sequence among records in the AccountTransa...
virtual struct CountMinMax getLedgerCountMinMax()=0
getLedgerCountMinMax Returns minumum ledger sequence, maximum ledger sequence and total number of sav...
virtual void closeLedgerDB()=0
Closes the ledger database.