|
rippled
|


Public Types | |
| using | AccountTx = std::pair< std::shared_ptr< Transaction >, std::shared_ptr< TxMeta > > |
| using | AccountTxs = std::vector< AccountTx > |
| using | txnMetaLedgerType = std::tuple< Blob, Blob, std::uint32_t > |
| using | MetaTxsList = std::vector< txnMetaLedgerType > |
| using | LedgerSequence = uint32_t |
| using | LedgerHash = uint256 |
| using | LedgerShortcut = RPC::LedgerShortcut |
| using | LedgerSpecifier = std::variant< LedgerRange, LedgerShortcut, LedgerSequence, LedgerHash > |
Public Member Functions | |
| virtual std::optional< LedgerIndex > | getTransactionsMinLedgerSeq ()=0 |
| getTransactionsMinLedgerSeq Returns minimum ledger sequence among records in the Transactions table. More... | |
| virtual std::optional< LedgerIndex > | getAccountTransactionsMinLedgerSeq ()=0 |
| getAccountTransactionsMinLedgerSeq Returns minimum ledger sequence among records in the AccountTransactions table. More... | |
| virtual void | deleteTransactionByLedgerSeq (LedgerIndex ledgerSeq)=0 |
| deleteTransactionByLedgerSeq Deletes transactions from ledger with given sequence. More... | |
| virtual void | deleteBeforeLedgerSeq (LedgerIndex ledgerSeq)=0 |
| deleteBeforeLedgerSeq Deletes all ledgers with given sequence and all sequences below it. More... | |
| virtual void | deleteTransactionsBeforeLedgerSeq (LedgerIndex ledgerSeq)=0 |
| deleteTransactionsBeforeLedgerSeq Deletes all transactions with given ledger sequence and all sequences below it. More... | |
| virtual void | deleteAccountTransactionsBeforeLedgerSeq (LedgerIndex ledgerSeq)=0 |
| deleteAccountTransactionsBeforeLedgerSeq Deletes all account transactions with given ledger sequence and all sequences below it. More... | |
| virtual std::size_t | getTransactionCount ()=0 |
| getTransactionCount Returns number of transactions. More... | |
| virtual std::size_t | getAccountTransactionCount ()=0 |
| getAccountTransactionCount Returns number of account transactions. More... | |
| virtual struct CountMinMax | getLedgerCountMinMax ()=0 |
| getLedgerCountMinMax Returns minumum ledger sequence, maximum ledger sequence and total number of saved ledgers. More... | |
| virtual bool | saveValidatedLedger (std::shared_ptr< Ledger const > const &ledger, bool current)=0 |
| saveValidatedLedger Saves ledger into database. More... | |
| virtual std::optional< LedgerInfo > | getLimitedOldestLedgerInfo (LedgerIndex ledgerFirstIndex)=0 |
| getLimitedOldestLedgerInfo Returns info of oldest ledger from ledgers with sequences greater or equal to given. More... | |
| virtual std::optional< LedgerInfo > | getLimitedNewestLedgerInfo (LedgerIndex ledgerFirstIndex)=0 |
| getLimitedNewestLedgerInfo Returns info of newest ledger from ledgers with sequences greater or equal to given. More... | |
| virtual AccountTxs | getOldestAccountTxs (AccountTxOptions const &options)=0 |
| getOldestAccountTxs Returns oldest transactions for given account which match given criteria starting from given offset. More... | |
| virtual AccountTxs | getNewestAccountTxs (AccountTxOptions const &options)=0 |
| getNewestAccountTxs Returns newest transactions for given account which match given criteria starting from given offset. More... | |
| virtual MetaTxsList | getOldestAccountTxsB (AccountTxOptions const &options)=0 |
| getOldestAccountTxsB Returns oldest transactions in binary form for given account which match given criteria starting from given offset. More... | |
| virtual MetaTxsList | getNewestAccountTxsB (AccountTxOptions const &options)=0 |
| getNewestAccountTxsB Returns newest transactions in binary form for given account which match given criteria starting from given offset. More... | |
| virtual std::pair< AccountTxs, std::optional< AccountTxMarker > > | oldestAccountTxPage (AccountTxPageOptions const &options)=0 |
| oldestAccountTxPage Returns oldest transactions for given account which match given criteria starting from given marker. More... | |
| virtual std::pair< AccountTxs, std::optional< AccountTxMarker > > | newestAccountTxPage (AccountTxPageOptions const &options)=0 |
| newestAccountTxPage Returns newest transactions for given account which match given criteria starting from given marker. More... | |
| 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 criteria starting from given marker. More... | |
| 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 criteria starting from given marker. More... | |
| 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. More... | |
| virtual uint32_t | getKBUsedAll ()=0 |
| getKBUsedAll Returns space used by all databases. More... | |
| virtual uint32_t | getKBUsedLedger ()=0 |
| getKBUsedLedger Returns space used by ledger database. More... | |
| virtual uint32_t | getKBUsedTransaction ()=0 |
| getKBUsedTransaction Returns space used by transaction database. More... | |
| virtual void | closeLedgerDB ()=0 |
| Closes the ledger database. More... | |
| virtual void | closeTransactionDB ()=0 |
| Closes the transaction database. More... | |
| virtual std::optional< LedgerIndex > | getMinLedgerSeq ()=0 |
| getMinLedgerSeq Returns minimum ledger sequence in Ledgers table. More... | |
| virtual std::optional< LedgerIndex > | getMaxLedgerSeq ()=0 |
| getMaxLedgerSeq Returns maximum ledger sequence in Ledgers table. More... | |
| virtual std::optional< LedgerInfo > | getLedgerInfoByIndex (LedgerIndex ledgerSeq)=0 |
| getLedgerInfoByIndex Returns ledger by its sequence. More... | |
| virtual std::optional< LedgerInfo > | getNewestLedgerInfo ()=0 |
| getNewestLedgerInfo Returns info of newest saved ledger. More... | |
| virtual std::optional< LedgerInfo > | getLedgerInfoByHash (uint256 const &ledgerHash)=0 |
| getLedgerInfoByHash Returns info of ledger with given hash. More... | |
| virtual uint256 | getHashByIndex (LedgerIndex ledgerIndex)=0 |
| getHashByIndex Returns hash of ledger with given sequence. More... | |
| virtual std::optional< LedgerHashPair > | getHashesByIndex (LedgerIndex ledgerIndex)=0 |
| getHashesByIndex Returns hash of the ledger and hash of parent ledger for the ledger of given sequence. More... | |
| virtual std::map< LedgerIndex, LedgerHashPair > | getHashesByIndex (LedgerIndex minSeq, LedgerIndex maxSeq)=0 |
| getHashesByIndex Returns hash of the ledger and hash of parent ledger for all ledgers with sequences from given minimum limit to given maximum limit. More... | |
| virtual std::vector< std::shared_ptr< Transaction > > | getTxHistory (LedgerIndex startIndex)=0 |
| getTxHistory Returns most recent 20 transactions starting from given number or entry. More... | |
| virtual bool | ledgerDbHasSpace (Config const &config)=0 |
| ledgerDbHasSpace Checks if ledger database has available space. More... | |
| virtual bool | transactionDbHasSpace (Config const &config)=0 |
| transactionDbHasSpace Checks if transaction database has available space. More... | |
Static Public Member Functions | |
| static std::unique_ptr< RelationalDBInterface > | init (Application &app, Config const &config, JobQueue &jobQueue) |
| init Creates and returns appropriate interface based on config. More... | |
Definition at line 27 of file RelationalDBInterfaceSqlite.h.
|
inherited |
Definition at line 85 of file RelationalDBInterface.h.
|
inherited |
Definition at line 86 of file RelationalDBInterface.h.
|
inherited |
Definition at line 87 of file RelationalDBInterface.h.
|
inherited |
Definition at line 88 of file RelationalDBInterface.h.
|
inherited |
Definition at line 90 of file RelationalDBInterface.h.
|
inherited |
Definition at line 91 of file RelationalDBInterface.h.
|
inherited |
Definition at line 92 of file RelationalDBInterface.h.
|
inherited |
Definition at line 94 of file RelationalDBInterface.h.
|
pure virtual |
getTransactionsMinLedgerSeq Returns minimum ledger sequence among records in the Transactions table.
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getAccountTransactionsMinLedgerSeq Returns minimum ledger sequence among records in the AccountTransactions table.
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
deleteTransactionByLedgerSeq Deletes transactions from ledger with given sequence.
| ledgerSeq | Ledger sequence. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
deleteBeforeLedgerSeq Deletes all ledgers with given sequence and all sequences below it.
| ledgerSeq | Ledger sequence. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
deleteTransactionsBeforeLedgerSeq Deletes all transactions with given ledger sequence and all sequences below it.
| ledgerSeq | Ledger sequence. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
deleteAccountTransactionsBeforeLedgerSeq Deletes all account transactions with given ledger sequence and all sequences below it.
| ledgerSeq | Ledger sequence. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getTransactionCount Returns number of transactions.
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getAccountTransactionCount Returns number of account transactions.
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getLedgerCountMinMax Returns minumum ledger sequence, maximum ledger sequence and total number of saved ledgers.
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
saveValidatedLedger Saves ledger into database.
| ledger | The ledger. |
| current | True if ledger is current. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getLimitedOldestLedgerInfo Returns info of oldest ledger from ledgers with sequences greater or equal to given.
| ledgerFirstIndex | Minimum ledger sequence. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getLimitedNewestLedgerInfo Returns info of newest ledger from ledgers with sequences greater or equal to given.
| ledgerFirstIndex | Minimum ledger sequence. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getOldestAccountTxs Returns oldest transactions for given account which match given criteria starting from given offset.
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getNewestAccountTxs Returns newest transactions for given account which match given criteria starting from given offset.
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getOldestAccountTxsB Returns oldest transactions in binary form for given account which match given criteria starting from given offset.
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getNewestAccountTxsB Returns newest transactions in binary form for given account which match given criteria starting from given offset.
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
oldestAccountTxPage Returns oldest transactions for given account which match given criteria starting from given marker.
| options | Struct AccountTxPageOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, marker of first returned entry, number of transactions to return, flag if this number unlimited. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
newestAccountTxPage Returns newest transactions for given account which match given criteria starting from given marker.
| options | Struct AccountTxPageOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, marker of first returned entry, number of transactions to return, flag if this number unlimited. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
oldestAccountTxPageB Returns oldest transactions in binary form for given account which match given criteria starting from given marker.
| options | Struct AccountTxPageOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, marker of first returned entry, number of transactions to return, flag if this number unlimited. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
newestAccountTxPageB Returns newest transactions in binary form for given account which match given criteria starting from given marker.
| options | Struct AccountTxPageOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, marker of first returned entry, number of transactions to return, flag if this number unlimited. |
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getTransaction Returns transaction with given hash.
If not found and range given then check if all ledgers from the range are present in the database.
| id | Hash of the transaction. |
| range | Range of ledgers to check, if present. |
| ec | Default value of error code. |
|
pure virtual |
getKBUsedAll Returns space used by all databases.
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getKBUsedLedger Returns space used by ledger database.
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
getKBUsedTransaction Returns space used by transaction database.
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
Closes the ledger database.
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
pure virtual |
Closes the transaction database.
Implemented in ripple::RelationalDBInterfaceSqliteImp.
|
staticinherited |
init Creates and returns appropriate interface based on config.
| app | Application object. |
| config | Config object. |
| jobQueue | JobQueue object. |
Definition at line 40 of file RelationalDBInterface.cpp.
|
pure virtualinherited |
getMinLedgerSeq Returns minimum ledger sequence in Ledgers table.
Implemented in ripple::RelationalDBInterfacePostgresImp, and ripple::RelationalDBInterfaceSqliteImp.
|
pure virtualinherited |
getMaxLedgerSeq Returns maximum ledger sequence in Ledgers table.
Implemented in ripple::RelationalDBInterfaceSqliteImp, and ripple::RelationalDBInterfacePostgresImp.
|
pure virtualinherited |
getLedgerInfoByIndex Returns ledger by its sequence.
| ledgerSeq | Ledger sequence. |
Implemented in ripple::RelationalDBInterfaceSqliteImp, and ripple::RelationalDBInterfacePostgresImp.
|
pure virtualinherited |
getNewestLedgerInfo Returns info of newest saved ledger.
Implemented in ripple::RelationalDBInterfaceSqliteImp, and ripple::RelationalDBInterfacePostgresImp.
|
pure virtualinherited |
getLedgerInfoByHash Returns info of ledger with given hash.
| ledgerHash | Hash of the ledger. |
|
pure virtualinherited |
getHashByIndex Returns hash of ledger with given sequence.
| ledgerIndex | Ledger sequence. |
Implemented in ripple::RelationalDBInterfaceSqliteImp, and ripple::RelationalDBInterfacePostgresImp.
|
pure virtualinherited |
getHashesByIndex Returns hash of the ledger and hash of parent ledger for the ledger of given sequence.
| ledgerIndex | Ledger sequence. |
Implemented in ripple::RelationalDBInterfaceSqliteImp, and ripple::RelationalDBInterfacePostgresImp.
|
pure virtualinherited |
getHashesByIndex Returns hash of the ledger and hash of parent ledger for all ledgers with sequences from given minimum limit to given maximum limit.
| minSeq | Minimum ledger sequence. |
| maxSeq | Maximum ledger sequence. |
Implemented in ripple::RelationalDBInterfaceSqliteImp, and ripple::RelationalDBInterfacePostgresImp.
|
pure virtualinherited |
getTxHistory Returns most recent 20 transactions starting from given number or entry.
| startIndex | First number of returned entry. |
Implemented in ripple::RelationalDBInterfaceSqliteImp, and ripple::RelationalDBInterfacePostgresImp.
|
pure virtualinherited |
ledgerDbHasSpace Checks if ledger database has available space.
| config | Config object. |
Implemented in ripple::RelationalDBInterfaceSqliteImp, and ripple::RelationalDBInterfacePostgresImp.
|
pure virtualinherited |
transactionDbHasSpace Checks if transaction database has available space.
| config | Config object. |
Implemented in ripple::RelationalDBInterfaceSqliteImp, and ripple::RelationalDBInterfacePostgresImp.
1.8.17