Bitcoin Core  0.20.99
P2P Digital Currency
Functions | Variables
sqlite.cpp File Reference
#include <wallet/sqlite.h>
#include <chainparams.h>
#include <crypto/common.h>
#include <logging.h>
#include <sync.h>
#include <util/memory.h>
#include <util/strencodings.h>
#include <util/system.h>
#include <util/translation.h>
#include <wallet/db.h>
#include <sqlite3.h>
#include <stdint.h>
Include dependency graph for sqlite.cpp:

Go to the source code of this file.

Functions

static int g_sqlite_count GUARDED_BY (g_sqlite_mutex)=0
 
static void ErrorLogCallback (void *arg, int code, const char *msg)
 
bool ExistsSQLiteDatabase (const fs::path &path)
 
std::unique_ptr< SQLiteDatabaseMakeSQLiteDatabase (const fs::path &path, const DatabaseOptions &options, DatabaseStatus &status, bilingual_str &error)
 
std::string SQLiteDatabaseVersion ()
 
bool IsSQLiteFile (const fs::path &path)
 

Variables

static const char *const DATABASE_FILENAME = "wallet.dat"
 
static constexpr int32_t WALLET_SCHEMA_VERSION = 0
 
static Mutex g_sqlite_mutex
 

Function Documentation

◆ ErrorLogCallback()

static void ErrorLogCallback ( void *  arg,
int  code,
const char *  msg 
)
static

Definition at line 26 of file sqlite.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExistsSQLiteDatabase()

bool ExistsSQLiteDatabase ( const fs::path &  path)

Definition at line 569 of file sqlite.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GUARDED_BY()

static int g_sqlite_count GUARDED_BY ( g_sqlite_mutex  )
staticpure virtual

◆ IsSQLiteFile()

bool IsSQLiteFile ( const fs::path &  path)

Definition at line 597 of file sqlite.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MakeSQLiteDatabase()

std::unique_ptr<SQLiteDatabase> MakeSQLiteDatabase ( const fs::path &  path,
const DatabaseOptions options,
DatabaseStatus status,
bilingual_str error 
)

Definition at line 575 of file sqlite.cpp.

Here is the caller graph for this function:

◆ SQLiteDatabaseVersion()

std::string SQLiteDatabaseVersion ( )

Definition at line 592 of file sqlite.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ DATABASE_FILENAME

const char* const DATABASE_FILENAME = "wallet.dat"
static

Definition at line 20 of file sqlite.cpp.

◆ g_sqlite_mutex

Mutex g_sqlite_mutex
static

Definition at line 23 of file sqlite.cpp.

◆ WALLET_SCHEMA_VERSION

constexpr int32_t WALLET_SCHEMA_VERSION = 0
static

Definition at line 21 of file sqlite.cpp.