AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::sql::SQLQuery Class Reference

SQL query. More...

#include <sqlQuery.hpp>

Collaboration diagram for anch::sql::SQLQuery:

Public Member Functions

 SQLQuery ()=delete
 SQLQuery (const SQLQuery &other)
 SQLQuery (const std::string &query, const anch::sql::Parameters &parameters)
SQLQuery & operator= (const SQLQuery &other)=default
const std::string & getQuery () const
const anch::sql::Parameters & getParameters () const

Detailed Description

SQL query.

This is the result of the builders. It provides:

  • query to send to database
  • named parameters of the prepared statement ( :name , see Connection::query )
Since
0.1
Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ SQLQuery() [1/3]

anch::sql::SQLQuery::SQLQuery ( )
delete

Prohibits SQLQuery default constructor

◆ SQLQuery() [2/3]

anch::sql::SQLQuery::SQLQuery ( const SQLQuery & other)

SQLQuery copy constructor

Here is the call graph for this function:

◆ SQLQuery() [3/3]

anch::sql::SQLQuery::SQLQuery ( const std::string & query,
const anch::sql::Parameters & parameters )

SQLQuery constructor

Parameters
querythe SQL query
parametersthe prepared statement parameters (named parameters of the query)

Member Function Documentation

◆ getParameters()

const anch::sql::Parameters & anch::sql::SQLQuery::getParameters ( ) const
inline

Prepared statement parameters getter

Returns
the parameters

◆ getQuery()

const std::string & anch::sql::SQLQuery::getQuery ( ) const
inline

SQL query getter

Returns
the SQL query

◆ operator=()

SQLQuery & anch::sql::SQLQuery::operator= ( const SQLQuery & other)
default

SQLQuery copy assignment

Parameters
otherthe query to copy
Returns
this
Here is the call graph for this function:

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