virtual std::chrono::seconds getValidatedLedgerAge()=0
getValidatedLedgerAge Returns age of last validated ledger.
virtual void stop()=0
There is only one implementation of this interface: RelationalDBInterfacePostgresImp.
virtual std::string getCompleteLedgers()=0
getCompleteLedgers Returns string which contains list of completed ledgers.
virtual std::pair< AccountTxResult, RPC::Status > getAccountTx(AccountTxArgs const &args)=0
getAccountTx Get last account transactions specifies by passed argumenrs structure.
virtual void sweep()=0
sweep Sweep the database.
virtual bool isCaughtUp(std::string &reason)=0
isCaughtUp returns whether the database is caught up with the network
virtual std::vector< uint256 > getTxHashes(LedgerIndex seq)=0
getTxHashes Returns vector of tx hashes by given ledger sequence.
virtual bool writeLedgerAndTransactions(LedgerInfo const &info, std::vector< AccountTransactionsData > const &accountTxData)=0
writeLedgerAndTransactions Write new ledger and transaction data into database.
virtual Transaction::Locator locateTransaction(uint256 const &id)=0
locateTransaction Returns information used to locate a transaction.