Bitcoin ABC  0.24.10
P2P Digital Currency
Functions | Variables
sqlite.cpp File Reference
#include <wallet/sqlite.h>
#include <logging.h>
#include <sync.h>
#include <util/strencodings.h>
#include <util/system.h>
#include <util/translation.h>
#include <wallet/db.h>
#include <cstdint>
#include <sqlite3.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 ()
 

Variables

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

Function Documentation

◆ ErrorLogCallback()

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

Definition at line 22 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 605 of file sqlite.cpp.

◆ GUARDED_BY()

static int g_sqlite_count GUARDED_BY ( g_sqlite_mutex  )
staticpure virtual

◆ MakeSQLiteDatabase()

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

Definition at line 610 of file sqlite.cpp.

Here is the call graph for this function:

◆ SQLiteDatabaseVersion()

std::string SQLiteDatabaseVersion ( )

Definition at line 627 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 17 of file sqlite.cpp.

◆ g_sqlite_mutex

Mutex g_sqlite_mutex
static

Definition at line 19 of file sqlite.cpp.