#include <sql.h>
Inherited by MySQLResult, and SQLiteResult.

Public Member Functions | |
| SQLResult () | |
| SQLResult (unsigned int i, const SQLQuery &q, const Anope::string &fq, const Anope::string &err="") | |
| operator bool () const | |
| const unsigned int | GetID () const |
| const SQLQuery & | GetQuery () const |
| const Anope::string & | GetError () 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 |
Data Fields | |
| unsigned int | id |
| Anope::string | finished_query |
Protected Attributes | |
| std::vector< std::map < Anope::string, Anope::string > > | entries |
| SQLQuery | query |
| Anope::string | error |
A result from a SQL query
Definition at line 60 of file sql.h.
| SQLResult::SQLResult | ( | unsigned int | i, | |
| const SQLQuery & | q, | |||
| const Anope::string & | fq, | |||
| const Anope::string & | err = "" | |||
| ) | [inline] |
| const Anope::string SQLResult::Get | ( | size_t | index, | |
| const Anope::string & | col | |||
| ) | const [inline] |
Definition at line 94 of file sql.h.
References Row().
Referenced by SQLiteService::CreateTable(), MySQLService::CreateTable(), CSTop::DoTop(), MChanstats::GetTables(), and DBMySQL::OnSerializeCheck().
| const Anope::string& SQLResult::GetError | ( | ) | const [inline] |
Definition at line 78 of file sql.h.
References error.
Referenced by ModuleSQL::OnNotify(), SQLiteService::Run(), CSTop::RunQuery(), CSStats::RunQuery(), and DBMySQL::RunQueryResult().
| const unsigned int SQLResult::GetID | ( | ) | const [inline] |
| const SQLQuery& SQLResult::GetQuery | ( | ) | const [inline] |
| SQLResult::operator bool | ( | ) | const [inline] |
Definition at line 74 of file sql.h.
References Anope::string::empty(), and error.
| const std::map<Anope::string, Anope::string>& SQLResult::Row | ( | size_t | index | ) | const [inline] |
Definition at line 82 of file sql.h.
References entries.
Referenced by Get(), MChanstats::GetTables(), and DBMySQL::OnSerializeCheck().
| int SQLResult::Rows | ( | ) | const [inline] |
Definition at line 80 of file sql.h.
References entries.
Referenced by SQLiteService::CreateTable(), MySQLService::CreateTable(), CSTop::DoTop(), MChanstats::GetTables(), DBMySQL::OnSerializeCheck(), and DBMySQL::RunQueryResult().
std::vector<std::map<Anope::string, Anope::string> > SQLResult::entries [protected] |
Definition at line 64 of file sql.h.
Referenced by SQLiteResult::addRow(), MySQLResult::MySQLResult(), Row(), and Rows().
Anope::string SQLResult::error [protected] |
Definition at line 66 of file sql.h.
Referenced by GetError(), and operator bool().
Definition at line 69 of file sql.h.
Referenced by DBMySQL::RunQueryResult().
| unsigned int SQLResult::id |
Definition at line 68 of file sql.h.
Referenced by GetID(), and SQLiteService::RunQuery().
SQLQuery SQLResult::query [protected] |
Definition at line 65 of file sql.h.
Referenced by GetQuery().
1.7.1