AnCH Framework 0.1
Another C++ Hack Framework
 
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 std::list< std::string > &values)
 
const std::string & getQuery () const
 
const std::list< std::string > & getValues () const
 

Detailed Description

SQL query.

This is the result of the builders. It provides:

  • query to send to database
  • values to add to prepared statement
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 std::list< std::string > & values )

SQLQuery constructor

Parameters
querythe SQL query
valuesthe prepared statement values

Member Function Documentation

◆ getQuery()

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

SQL query getter

Returns
the SQL query

◆ getValues()

const std::list< std::string > & anch::sql::SQLQuery::getValues ( ) const
inline

Prepared statement values getter

Returns
the values

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