Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Namespaces | Enumerations | Functions
db.h File Reference
#include <clientversion.h>
#include <streams.h>
#include <support/allocators/secure.h>
#include <util/fs.h>
#include <atomic>
#include <memory>
#include <optional>
#include <string>
Include dependency graph for db.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wallet::BytePrefix
 
class  wallet::DatabaseCursor
 
class  wallet::DatabaseBatch
 RAII class that provides access to a WalletDatabase. More...
 
class  wallet::WalletDatabase
 An instance of this class represents one database. More...
 
struct  wallet::DatabaseOptions
 

Namespaces

namespace  wallet
 

Enumerations

enum class  wallet::DatabaseFormat { wallet::BERKELEY , wallet::SQLITE , wallet::BERKELEY_RO , wallet::BERKELEY_SWAP }
 
enum class  wallet::DatabaseStatus {
  wallet::SUCCESS , wallet::FAILED_BAD_PATH , wallet::FAILED_BAD_FORMAT , wallet::FAILED_ALREADY_LOADED ,
  wallet::FAILED_ALREADY_EXISTS , wallet::FAILED_NOT_FOUND , wallet::FAILED_CREATE , wallet::FAILED_LOAD ,
  wallet::FAILED_VERIFY , wallet::FAILED_ENCRYPT , wallet::FAILED_INVALID_BACKUP_FILE
}
 

Functions

bool wallet::operator< (BytePrefix a, Span< const std::byte > b)
 
bool wallet::operator< (Span< const std::byte > a, BytePrefix b)
 
std::vector< std::pair< fs::path, std::string > > wallet::ListDatabases (const fs::path &path)
 Recursively list database paths in directory. More...
 
void wallet::ReadDatabaseArgs (const ArgsManager &args, DatabaseOptions &options)
 
std::unique_ptr< WalletDatabase > wallet::MakeDatabase (const fs::path &path, const DatabaseOptions &options, DatabaseStatus &status, bilingual_str &error)
 
fs::path wallet::BDBDataFile (const fs::path &wallet_path)
 
fs::path wallet::SQLiteDataFile (const fs::path &path)
 
bool wallet::IsBDBFile (const fs::path &path)
 
bool wallet::IsSQLiteFile (const fs::path &path)