Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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::SQLITE , wallet::BERKELEY_RO }
enum class  wallet::DatabaseStatus {
  wallet::SUCCESS , wallet::FAILED_BAD_PATH , wallet::FAILED_BAD_FORMAT , wallet::FAILED_LEGACY_DISABLED ,
  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 ,
  wallet::FAILED_NEW_UNNAMED
}

Functions

bool wallet::operator< (BytePrefix a, std::span< const std::byte > b)
bool wallet::operator< (std::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.
void wallet::ReadDatabaseArgs (const ArgsManager &args, DatabaseOptions &options)
std::unique_ptr< WalletDatabasewallet::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)