Bitcoin Core  28.1.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

 wallet
 

Enumerations

enum  wallet::DatabaseFormat { wallet::DatabaseFormat::BERKELEY, wallet::DatabaseFormat::SQLITE, wallet::DatabaseFormat::BERKELEY_RO, wallet::DatabaseFormat::BERKELEY_SWAP }
 
enum  wallet::DatabaseStatus {
  wallet::DatabaseStatus::SUCCESS, wallet::DatabaseStatus::FAILED_BAD_PATH, wallet::DatabaseStatus::FAILED_BAD_FORMAT, wallet::DatabaseStatus::FAILED_ALREADY_LOADED,
  wallet::DatabaseStatus::FAILED_ALREADY_EXISTS, wallet::DatabaseStatus::FAILED_NOT_FOUND, wallet::DatabaseStatus::FAILED_CREATE, wallet::DatabaseStatus::FAILED_LOAD,
  wallet::DatabaseStatus::FAILED_VERIFY, wallet::DatabaseStatus::FAILED_ENCRYPT, wallet::DatabaseStatus::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)