Prepared statement for databases.
More...
#include <prepared_stmt.hxx>
|
|
std::string | m_name |
| | Name of the prepared statement.
|
| |
|
std::string | m_query |
| | Query to prepare.
|
| |
Prepared statement for databases.
◆ PreparedSTMT() [1/4]
| StormByte::Database::PreparedSTMT::PreparedSTMT |
( |
const std::string & |
name, |
|
|
const std::string & |
query |
|
) |
| |
|
inlinenoexcept |
Default constructor
- Parameters
-
| name | The name of the prepared statement |
| query | The query to prepare |
◆ PreparedSTMT() [2/4]
| StormByte::Database::PreparedSTMT::PreparedSTMT |
( |
std::string && |
name, |
|
|
std::string && |
query |
|
) |
| |
|
inlinenoexcept |
Constructor moving string
- Parameters
-
| name | The name of the prepared statement |
| query | The query to prepare |
◆ PreparedSTMT() [3/4]
| StormByte::Database::PreparedSTMT::PreparedSTMT |
( |
const PreparedSTMT & |
other | ) |
|
|
delete |
Default copy constructor (deleted)
- Parameters
-
◆ PreparedSTMT() [4/4]
| StormByte::Database::PreparedSTMT::PreparedSTMT |
( |
PreparedSTMT && |
other | ) |
|
|
default |
Default move constructor
- Parameters
-
◆ ~PreparedSTMT()
| virtual StormByte::Database::PreparedSTMT::~PreparedSTMT |
( |
| ) |
|
|
virtualdefault |
◆ Execute()
template<typename... Args>
| ExpectedRows StormByte::Database::PreparedSTMT::Execute |
( |
Args &&... |
args | ) |
|
|
inline |
Executes the prepared statement with the given arguments
- Template Parameters
-
| Args | Types of the arguments |
- Parameters
-
| args | Arguments to bind and execute |
- Returns
- Resulting rows
◆ Name()
| const std::string & StormByte::Database::PreparedSTMT::Name |
( |
| ) |
const |
|
inlinenoexcept |
Gets the name of the prepared statement
- Returns
- name
◆ operator=() [1/2]
Default copy assignment operator (deleted)
- Parameters
-
- Returns
- Reference to this PreparedSTMT
◆ operator=() [2/2]
Default move assignment operator
- Parameters
-
- Returns
- Reference to this PreparedSTMT
◆ Query()
| const std::string & StormByte::Database::PreparedSTMT::Query |
( |
| ) |
const |
|
inlinenoexcept |
Gets the query of the prepared statement
- Returns
- query
The documentation for this class was generated from the following file:
- /home/runner/work/StormByte-Database/StormByte-Database/lib/public/StormByte/database/prepared_stmt.hxx