20 #ifndef RIPPLE_APP_RDB_PEERFINDER_H_INCLUDED
21 #define RIPPLE_APP_RDB_PEERFINDER_H_INCLUDED
23 #include <ripple/core/Config.h>
24 #include <ripple/core/DatabaseCon.h>
25 #include <ripple/peerfinder/impl/Store.h>
37 soci::session& session,
38 BasicConfig
const& config,
49 soci::session& session,
50 int currentSchemaVersion,
61 soci::session& session,
71 soci::session& session,
void initPeerFinderDB(soci::session &session, BasicConfig const &config, beast::Journal j)
initPeerFinderDB Opens a session with the peer finder database.
void updatePeerFinderDB(soci::session &session, int currentSchemaVersion, beast::Journal j)
updatePeerFinderDB Updates the peer finder database to a new version.
void readPeerFinderDB(soci::session &session, std::function< void(std::string const &, int)> const &func)
readPeerFinderDB Reads all entries from the peer finder database and invokes the given callback for e...
A generic endpoint for log messages.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void savePeerFinderDB(soci::session &session, std::vector< PeerFinder::Store::Entry > const &v)
savePeerFinderDB Saves a new entry to the peer finder database.