Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
sqlite.cpp File Reference
#include <bitcoin-build-config.h>
#include <wallet/sqlite.h>
#include <chainparams.h>
#include <crypto/common.h>
#include <logging.h>
#include <sync.h>
#include <util/check.h>
#include <util/fs_helpers.h>
#include <util/strencodings.h>
#include <util/translation.h>
#include <wallet/db.h>
#include <sqlite3.h>
#include <cstdint>
#include <optional>
#include <utility>
#include <vector>
Include dependency graph for sqlite.cpp:

Go to the source code of this file.

Namespaces

namespace  wallet

Functions

static std::span< const std::byte > wallet::SpanFromBlob (sqlite3_stmt *stmt, int col)
static void wallet::ErrorLogCallback (void *arg, int code, const char *msg)
static int wallet::TraceSqlCallback (unsigned code, void *context, void *param1, void *param2)
static bool wallet::BindBlobToStatement (sqlite3_stmt *stmt, int index, std::span< const std::byte > blob, const std::string &description)
static std::optional< int > wallet::ReadPragmaInteger (sqlite3 *db, const std::string &key, const std::string &description, bilingual_str &error)
static void wallet::SetPragma (sqlite3 *db, const std::string &key, const std::string &value, const std::string &err_msg)
std::unique_ptr< SQLiteDatabasewallet::MakeSQLiteDatabase (const fs::path &path, const DatabaseOptions &options, DatabaseStatus &status, bilingual_str &error)
std::string wallet::SQLiteDatabaseVersion ()

Variables

static constexpr int32_t wallet::WALLET_SCHEMA_VERSION = 0