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

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

MYSQL_RES * res
 

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::MySQLResult ( unsigned int  i,
const Query q,
const Anope::string fq,
MYSQL_RES *  r 
)
inline

Definition at line 59 of file m_mysql.cpp.

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

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

Definition at line 89 of file m_mysql.cpp.

MySQLResult::~MySQLResult ( )
inline

Definition at line 93 of file m_mysql.cpp.

Field Documentation

MYSQL_RES* MySQLResult::res
private

Definition at line 56 of file m_mysql.cpp.


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