Anope IRC Services  Version 2.0
Public Member Functions | Data Fields
SQL::Query Struct Reference

#include <sql.h>

Collaboration diagram for SQL::Query:
Collaboration graph
[legend]

Public Member Functions

 Query ()
 
 Query (const Anope::string &q)
 
Queryoperator= (const Anope::string &q)
 
bool operator== (const Query &other) const
 
bool operator!= (const Query &other) const
 
template<typename T >
void SetValue (const Anope::string &key, const T &value, bool escape=true)
 

Data Fields

Anope::string query
 
std::map< Anope::string,
QueryData
parameters
 

Detailed Description

Definition at line 96 of file sql.h.

Constructor & Destructor Documentation

SQL::Query::Query ( )
inline

Definition at line 101 of file sql.h.

SQL::Query::Query ( const Anope::string q)
inline

Definition at line 102 of file sql.h.

Member Function Documentation

bool SQL::Query::operator!= ( const Query other) const
inline

Definition at line 116 of file sql.h.

Query& SQL::Query::operator= ( const Anope::string q)
inline

Definition at line 104 of file sql.h.

References Anope::string::clear().

bool SQL::Query::operator== ( const Query other) const
inline

Definition at line 111 of file sql.h.

References query.

template<typename T >
void SQL::Query::SetValue ( const Anope::string key,
const T &  value,
bool  escape = true 
)
inline

Field Documentation

std::map<Anope::string, QueryData> SQL::Query::parameters

Definition at line 99 of file sql.h.

Referenced by SQLiteService::BuildQuery(), and MySQLService::BuildQuery().

Anope::string SQL::Query::query

Definition at line 98 of file sql.h.

Referenced by SQLiteService::BuildQuery(), MySQLService::BuildQuery(), and operator==().


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