aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/sqlite.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 1.21 codebase rebrand (#1711)barrystyle2021-02-201-1/+1
| | | | | | | | | | | | | * build: Brand codebase as Dogecoin via automake/autoconf files. * build: Update internal resource files for windows builds. * build: Update internal application names and data directories. * build: Update immediately visible remaining bitcoin name references from cli binaries and qt. * build: Update immediately visible bitcoin references in the main gui itself. * Update functional tests to match Dogecoin * wallet: Add missing check for -descriptors wallet tool option * correct output for functional tests (errorlevels?) Co-authored-by: Ross Nicoll <[email protected]> Co-authored-by: MarcoFalke <[email protected]>
* wallet: Set DatabaseStatus::SUCCESS in MakeSQLiteDatabaseMarcoFalke2020-11-051-0/+1
|
* Set bilingual error completelyHennadii Stepanov2020-11-051-1/+1
|
* wallet: fix buffer over-read in SQLite file magic checkSebastian Falbesoner2020-10-221-2/+2
| | | | | | | If there is no terminating zero within the 16 magic bytes, the buffer would be over-read in the std::string constructor. Fixed by using the "from buffer" variant of the ctor (that also takes a size) rather than the "from c-string" variant.
* wallet: Enforce sqlite serialized threading modeAndrew Chow2020-10-141-0/+5
|
* Set and check the sqlite user versionAndrew Chow2020-10-141-0/+29
|
* Use network magic as sqlite wallet application IDAndrew Chow2020-10-141-1/+44
|
* Determine wallet file type based on file magicAndrew Chow2020-10-141-1/+25
|
* Implement SQLiteDatabase::MakeBatchAndrew Chow2020-10-141-1/+2
|
* Implement SQLiteDatabase::VerifyAndrew Chow2020-10-141-1/+51
|
* Implement SQLiteDatabase::RewriteAndrew Chow2020-10-141-1/+3
| | | | | | Rewrite uses the VACUUM command which does exactly what we want. A specific advertised use case is to compact a database and ensure that any deleted data is actually deleted.
* Implement SQLiteDatabase::TxnBegin, TxnCommit, and TxnAbortAndrew Chow2020-10-141-3/+18
|
* Implement SQLiteDatabase::BackupAndrew Chow2020-10-141-1/+23
|
* Implement SQLiteBatch::StartCursor, ReadAtCursor, and CloseCursorAndrew Chow2020-10-141-2/+28
|
* Implement SQLiteBatch::ReadKey, WriteKey, EraseKey, and HasKeyAndrew Chow2020-10-141-4/+100
|
* Add SetupSQLStatementsAndrew Chow2020-10-141-0/+59
|
* Implement SQLiteBatch::CloseAndrew Chow2020-10-141-0/+8
|
* Implement SQLiteDatabase::CloseAndrew Chow2020-10-141-0/+5
|
* Implement SQLiteDatabase::OpenAndrew Chow2020-10-141-0/+69
|
* Initialize and Shutdown sqlite3 globalsAndrew Chow2020-10-141-4/+53
| | | | | | | | | sqlite3 recommends that sqlite3_initialize be called when the application starts, and sqlite3_shutdown when it stops. Since we don't always use sqlite3, we initialize it when a SQLiteDatabse is constructed (calling sqlite3_initialize after initialized is a no-op). We call sqlite3_shutdown when we see that there are no databases opened. The number of open databases is tracked by an atomic g_dbs_open.
* Constructors, destructors, and relevant private fields for SQLiteDatabase/BatchAndrew Chow2020-10-141-0/+11
|
* Implement SQLiteDatabaseVersionAndrew Chow2020-10-141-0/+6
|
* Add SQLiteDatabase and SQLiteBatch dummy classesAndrew Chow2020-10-141-0/+109