mirror of
https://github.com/XRPLF/rippled.git
synced 2026-03-26 14:42:27 +00:00
The rdb module was not properly designed, which is fixed in this change. The module had three classes: 1) The abstract class `RelationalDB`. 2) The abstract class `SQLiteDatabase`, which inherited from `RelationalDB` and added some pure virtual methods. 3) The concrete class `SQLiteDatabaseImp`, which inherited from `SQLiteDatabase` and implemented all methods. The updated code simplifies this as follows: * The `SQLiteDatabaseImp` has become `SQLiteDatabase`, and * The former `SQLiteDatabase `has merged with `RelationalDatabase`.
23 lines
534 B
C++
23 lines
534 B
C++
#pragma once
|
|
|
|
namespace xrpl {
|
|
|
|
/**
|
|
* @brief Enumeration of ledger shortcuts for specifying which ledger to use.
|
|
*
|
|
* These shortcuts provide a convenient way to reference commonly used ledgers
|
|
* without needing to specify their exact hash or sequence number.
|
|
*/
|
|
enum class LedgerShortcut {
|
|
/** The current working ledger (open, not yet closed) */
|
|
Current,
|
|
|
|
/** The most recently closed ledger (may not be validated) */
|
|
Closed,
|
|
|
|
/** The most recently validated ledger */
|
|
Validated
|
|
};
|
|
|
|
} // namespace xrpl
|