Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
wallet::SQLiteCursor Class Reference

RAII class that provides a database cursor. More...

#include <sqlite.h>

Inheritance diagram for wallet::SQLiteCursor:
[legend]
Collaboration diagram for wallet::SQLiteCursor:
[legend]

Public Member Functions

 SQLiteCursor ()
 
 SQLiteCursor (std::vector< std::byte > start_range, std::vector< std::byte > end_range)
 
 ~SQLiteCursor () override
 
Status Next (DataStream &key, DataStream &value) override
 
- Public Member Functions inherited from wallet::DatabaseCursor
 DatabaseCursor ()
 
virtual ~DatabaseCursor ()
 
 DatabaseCursor (const DatabaseCursor &)=delete
 
DatabaseCursoroperator= (const DatabaseCursor &)=delete
 

Public Attributes

sqlite3_stmt * m_cursor_stmt {nullptr}
 
std::vector< std::byte > m_prefix_range_start
 
std::vector< std::byte > m_prefix_range_end
 

Additional Inherited Members

- Public Types inherited from wallet::DatabaseCursor
enum class  Status { FAIL , MORE , DONE }
 

Detailed Description

RAII class that provides a database cursor.

Definition at line 20 of file sqlite.h.

Constructor & Destructor Documentation

◆ SQLiteCursor() [1/2]

wallet::SQLiteCursor::SQLiteCursor ( )
inlineexplicit

Definition at line 29 of file sqlite.h.

◆ SQLiteCursor() [2/2]

wallet::SQLiteCursor::SQLiteCursor ( std::vector< std::byte >  start_range,
std::vector< std::byte >  end_range 
)
inlineexplicit

Definition at line 30 of file sqlite.h.

◆ ~SQLiteCursor()

wallet::SQLiteCursor::~SQLiteCursor ( )
override

Definition at line 583 of file sqlite.cpp.

Member Function Documentation

◆ Next()

DatabaseCursor::Status wallet::SQLiteCursor::Next ( DataStream key,
DataStream value 
)
overridevirtual

Reimplemented from wallet::DatabaseCursor.

Definition at line 563 of file sqlite.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_cursor_stmt

sqlite3_stmt* wallet::SQLiteCursor::m_cursor_stmt {nullptr}

Definition at line 23 of file sqlite.h.

◆ m_prefix_range_end

std::vector<std::byte> wallet::SQLiteCursor::m_prefix_range_end

Definition at line 27 of file sqlite.h.

◆ m_prefix_range_start

std::vector<std::byte> wallet::SQLiteCursor::m_prefix_range_start

Definition at line 26 of file sqlite.h.


The documentation for this class was generated from the following files: