An instance of this class represents one SQLite3 database.
More...
#include <sqlite.h>
An instance of this class represents one SQLite3 database.
Definition at line 100 of file sqlite.h.
◆ SQLiteDatabase() [1/2]
wallet::SQLiteDatabase::SQLiteDatabase |
( |
| ) |
|
|
delete |
◆ SQLiteDatabase() [2/2]
Create DB handle to real database.
Definition at line 114 of file sqlite.cpp.
◆ ~SQLiteDatabase()
wallet::SQLiteDatabase::~SQLiteDatabase |
( |
| ) |
|
◆ Backup()
bool wallet::SQLiteDatabase::Backup |
( |
const std::string & |
dest | ) |
const |
|
overridevirtual |
◆ Cleanup()
void wallet::SQLiteDatabase::Cleanup |
( |
| ) |
|
|
privatenoexcept |
◆ Close()
void wallet::SQLiteDatabase::Close |
( |
| ) |
|
|
overridevirtual |
◆ Filename()
std::string wallet::SQLiteDatabase::Filename |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Format()
std::string wallet::SQLiteDatabase::Format |
( |
| ) |
|
|
inlineoverridevirtual |
◆ GUARDED_BY()
static int g_sqlite_count wallet::SQLiteDatabase::GUARDED_BY |
( |
g_sqlite_mutex |
| ) |
|
|
staticprivate |
◆ HasActiveTxn()
bool wallet::SQLiteDatabase::HasActiveTxn |
( |
| ) |
|
Return true if there is an on-going txn in this connection.
Definition at line 382 of file sqlite.cpp.
◆ MakeBatch()
std::unique_ptr< DatabaseBatch > wallet::SQLiteDatabase::MakeBatch |
( |
| ) |
|
|
overridevirtual |
◆ Open()
void wallet::SQLiteDatabase::Open |
( |
| ) |
|
|
overridevirtual |
◆ Rewrite()
bool wallet::SQLiteDatabase::Rewrite |
( |
const char * |
skip = nullptr | ) |
|
|
overridevirtual |
◆ Verify()
◆ g_sqlite_mutex
Mutex wallet::SQLiteDatabase::g_sqlite_mutex |
|
staticprivate |
This mutex protects SQLite initialization and shutdown.
sqlite3_config() and sqlite3_shutdown() are not thread-safe (sqlite3_initialize() is). Concurrent threads that execute SQLiteDatabase::SQLiteDatabase() should have just one of them do the init and the rest wait for it to complete before all can proceed.
Definition at line 115 of file sqlite.h.
◆ m_db
sqlite3* wallet::SQLiteDatabase::m_db {nullptr} |
◆ m_dir_path
const std::string wallet::SQLiteDatabase::m_dir_path |
|
private |
◆ m_file_path
const std::string wallet::SQLiteDatabase::m_file_path |
|
private |
◆ m_mock
const bool wallet::SQLiteDatabase::m_mock {false} |
|
private |
◆ m_use_unsafe_sync
bool wallet::SQLiteDatabase::m_use_unsafe_sync |
◆ m_write_semaphore
CSemaphore wallet::SQLiteDatabase::m_write_semaphore |
The documentation for this class was generated from the following files: