20 #ifndef RIPPLE_APP_RDB_SHARDARCHIVE_H_INCLUDED
21 #define RIPPLE_APP_RDB_SHARDARCHIVE_H_INCLUDED
23 #include <ripple/core/DatabaseCon.h>
24 #include <boost/filesystem.hpp>
void deleteFromArchiveDB(DatabaseCon &db, std::uint32_t shardIndex)
deleteFromArchiveDB Deletes an entry from the shard archive database.
void dropArchiveDB(DatabaseCon &db)
dropArchiveDB Removes a table in the shard archive database.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void readArchiveDB(DatabaseCon &db, std::function< void(std::string const &, int)> const &func)
readArchiveDB Reads entries from the shard archive database and invokes the given callback for each e...
void insertArchiveDB(DatabaseCon &db, std::uint32_t shardIndex, std::string const &url)
insertArchiveDB Adds an entry to the shard archive database.
std::unique_ptr< DatabaseCon > makeArchiveDB(boost::filesystem::path const &dir, std::string const &dbName)
makeArchiveDB Opens the shard archive database and returns its descriptor.