StormByte C++ Library: Database module 0.0.9999
StormByte-Database is a StormByte library module for handling database connections
|
Prepared statement for databases. More...
#include <preparedSTMT.hxx>
Public Member Functions | |
constexpr | PreparedSTMT (const std::string &name, const std::string &query) |
constexpr | PreparedSTMT (std::string &&name, std::string &&query) |
PreparedSTMT (const PreparedSTMT &)=delete | |
constexpr | PreparedSTMT (PreparedSTMT &&)=default |
PreparedSTMT & | operator= (const PreparedSTMT &)=delete |
constexpr PreparedSTMT & | operator= (PreparedSTMT &&)=default |
virtual constexpr | ~PreparedSTMT ()=default |
virtual PreparedSTMT & | Bind (const int &index, const std::nullptr_t &value) noexcept=0 |
virtual PreparedSTMT & | Bind (const int &index, const int &value) noexcept=0 |
virtual PreparedSTMT & | Bind (const int &index, const unsigned int &value) noexcept=0 |
virtual PreparedSTMT & | Bind (const int &index, const int64_t &value) noexcept=0 |
virtual PreparedSTMT & | Bind (const int &index, const uint64_t &value) noexcept=0 |
virtual PreparedSTMT & | Bind (const int &index, const double &value) noexcept=0 |
virtual PreparedSTMT & | Bind (const int &index, bool value) noexcept=0 |
virtual PreparedSTMT & | Bind (const int &index, const std::string &value) noexcept=0 |
virtual void | Reset () noexcept=0 |
virtual const Row & | Step () noexcept=0 |
constexpr const std::string & | GetName () const noexcept |
constexpr const std::string & | GetQuery () const noexcept |
Protected Attributes | |
std::string | m_name |
Name of the prepared statement. | |
std::string | m_query |
Query to prepare. | |
std::unique_ptr< Row > | m_row |
Last result row of the prepared statement. | |
Prepared statement for databases.
|
inlineconstexpr |
Default constructor
name | The name of the prepared statement |
query | The query to prepare |
|
inlineconstexpr |
Constructor moving string
name | The name of the prepared statement |
query | The query to prepare |
|
delete |
Default copy constructor (deleted)
|
constexprdefault |
Default move constructor
|
constexprvirtualdefault |
Default destructor.
Reimplemented in StormByte::Database::SQLite::PreparedSTMT.
|
pure virtualnoexcept |
Binds a value to a prepared statement
index | parameter index |
value | Value to be bound |
Implemented in StormByte::Database::SQLite::PreparedSTMT.
|
pure virtualnoexcept |
Binds a value to a prepared statement
index | parameter index |
value | Value to be bound |
Implemented in StormByte::Database::SQLite::PreparedSTMT.
|
pure virtualnoexcept |
Binds a value to a prepared statement
index | parameter index |
value | Value to be bound |
Implemented in StormByte::Database::SQLite::PreparedSTMT.
|
pure virtualnoexcept |
Binds a value to a prepared statement
index | parameter index |
value | Value to be bound |
Implemented in StormByte::Database::SQLite::PreparedSTMT.
|
pure virtualnoexcept |
Binds a value to a prepared statement
index | parameter index |
value | Value to be bound |
Implemented in StormByte::Database::SQLite::PreparedSTMT.
|
pure virtualnoexcept |
Binds a value to a prepared statement
index | parameter index |
value | Value to be bound |
Implemented in StormByte::Database::SQLite::PreparedSTMT.
|
pure virtualnoexcept |
Binds a value to a prepared statement
index | parameter index |
value | Value to be bound |
Implemented in StormByte::Database::SQLite::PreparedSTMT.
|
pure virtualnoexcept |
Binds a value to a prepared statement
index | parameter index |
value | Value to be bound |
Implemented in StormByte::Database::SQLite::PreparedSTMT.
|
inlineconstexprnoexcept |
Gets the name of the prepared statement
|
inlineconstexprnoexcept |
Gets the query of the prepared statement
|
delete |
Default copy assignment operator (deleted)
|
constexprdefault |
Default move assignment operator
|
pure virtualnoexcept |
Resets the prepared statement
Implemented in StormByte::Database::SQLite::PreparedSTMT.
|
pure virtualnoexcept |
Step into the prepared statement results
Implemented in StormByte::Database::SQLite::PreparedSTMT.