1#ifndef XRPL_APP_RDB_STATE_H_INCLUDED
2#define XRPL_APP_RDB_STATE_H_INCLUDED
4#include <xrpld/app/ledger/Ledger.h>
5#include <xrpld/app/misc/Manifest.h>
6#include <xrpld/core/Config.h>
7#include <xrpld/core/DatabaseCon.h>
8#include <xrpld/peerfinder/detail/Store.h>
10#include <boost/filesystem.hpp>
29 soci::session& session,
Holds unparsed configuration information.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
LedgerIndex getCanDelete(soci::session &session)
getCanDelete Returns the ledger sequence which can be deleted.
SavedState getSavedState(soci::session &session)
getSavedState Returns the saved state.
void setSavedState(soci::session &session, SavedState const &state)
setSavedState Saves the given state.
void initStateDB(soci::session &session, BasicConfig const &config, std::string const &dbName)
initStateDB Opens a session with the State database.
LedgerIndex setCanDelete(soci::session &session, LedgerIndex canDelete)
setCanDelete Updates the ledger sequence which can be deleted.
void setLastRotated(soci::session &session, LedgerIndex seq)
setLastRotated Updates the last rotated ledger sequence.