|
xrpld
|
Database persistence for PeerFinder using SQLite. More...
#include <StoreSqdb.h>


Public Types | |
| using | load_callback = std::function<void(beast::IP::Endpoint, int)> |
Public Member Functions | |
| StoreSqdb (beast::Journal journal=beast::Journal{beast::Journal::getNullSink()}) | |
| ~StoreSqdb () override=default | |
| void | open (BasicConfig const &config) |
| std::size_t | load (load_callback const &cb) override |
| void | save (std::vector< Entry > const &v) override |
| void | update () |
Static Public Attributes | |
| static constexpr auto | kCurrentSchemaVersion = 4 |
Private Member Functions | |
| void | init (BasicConfig const &config) |
Private Attributes | |
| beast::Journal | journal_ |
| soci::session | sqlDb_ |
Database persistence for PeerFinder using SQLite.
Definition at line 11 of file StoreSqdb.h.
|
inherited |
|
explicit |
Definition at line 20 of file StoreSqdb.h.
|
overridedefault |
| void xrpl::PeerFinder::StoreSqdb::open | ( | BasicConfig const & | config | ) |
Definition at line 28 of file StoreSqdb.h.
|
overridevirtual |
Implements xrpl::PeerFinder::Store.
Definition at line 37 of file StoreSqdb.h.
|
overridevirtual |
Implements xrpl::PeerFinder::Store.
Definition at line 61 of file StoreSqdb.h.
| void xrpl::PeerFinder::StoreSqdb::update | ( | ) |
Definition at line 69 of file StoreSqdb.h.
|
private |
Definition at line 76 of file StoreSqdb.h.
|
private |
Definition at line 14 of file StoreSqdb.h.
|
private |
Definition at line 15 of file StoreSqdb.h.
|
staticconstexpr |
Definition at line 18 of file StoreSqdb.h.