Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
MySQLResult Class Reference
Inheritance diagram for MySQLResult:
Inheritance graph
Collaboration diagram for MySQLResult:
Collaboration graph

Public Member Functions

 MySQLResult (unsigned int i, const Query &q, const Anope::string &fq, MYSQL_RES *r)
 MySQLResult (const Query &q, const Anope::string &fq, const Anope::string &err)
 ~MySQLResult ()
- Public Member Functions inherited from SQL::Result
 Result ()
 Result (unsigned int i, const Query &q, const Anope::string &fq, const Anope::string &err="")
 operator bool () const
const unsigned int GetID () const
const QueryGetQuery () const
const Anope::stringGetError () const
int Rows () const
const std::map< Anope::string, Anope::string > & Row (size_t index) const
const Anope::string Get (size_t index, const Anope::string &col) const

Private Attributes


Additional Inherited Members

- Data Fields inherited from SQL::Result
unsigned int id
Anope::string finished_query
- Protected Attributes inherited from SQL::Result
std::vector< std::map< Anope::string, Anope::string > > entries
Query query
Anope::string error

Detailed Description

A MySQL result

Definition at line 54 of file m_mysql.cpp.

Constructor & Destructor Documentation

◆ MySQLResult() [1/2]

MySQLResult::MySQLResult ( unsigned int  i,
const Query q,
const Anope::string fq,

Definition at line 59 of file m_mysql.cpp.

References items, and Anope::string::push_back().

◆ MySQLResult() [2/2]

MySQLResult::MySQLResult ( const Query q,
const Anope::string fq,
const Anope::string err 

Definition at line 89 of file m_mysql.cpp.

◆ ~MySQLResult()

MySQLResult::~MySQLResult ( )

Definition at line 93 of file m_mysql.cpp.

Field Documentation

◆ res

MYSQL_RES* MySQLResult::res

Definition at line 56 of file m_mysql.cpp.

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