Inherits SQL::Provider.

Public Member Functions | |
| SQLiteService (Module *o, const Anope::string &n, const Anope::string &d) | |
| ~SQLiteService () | |
| void | Run (Interface *i, const Query &query) anope_override |
| Result | RunQuery (const Query &query) |
| std::vector< Query > | CreateTable (const Anope::string &table, const Data &data) anope_override |
| Query | BuildInsert (const Anope::string &table, unsigned int id, Data &data) |
| Query | GetTables (const Anope::string &prefix) |
| Anope::string | BuildQuery (const Query &q) |
| Anope::string | FromUnixtime (time_t) |
Private Member Functions | |
| Anope::string | Escape (const Anope::string &query) |
Private Attributes | |
| std::map< Anope::string, std::set< Anope::string > > | active_schema |
| Anope::string | database |
| sqlite3 * | sql |
A SQLite database, there can be multiple
Definition at line 32 of file m_sqlite.cpp.
| SQLiteService::SQLiteService | ( | Module * | o, | |
| const Anope::string & | n, | |||
| const Anope::string & | d | |||
| ) |
Definition at line 130 of file m_sqlite.cpp.
References Anope::string::c_str(), database, and sql.
| SQLiteService::~SQLiteService | ( | ) |
Definition at line 138 of file m_sqlite.cpp.
References sql.
| Query SQLiteService::BuildInsert | ( | const Anope::string & | table, | |
| unsigned int | id, | |||
| Data & | data | |||
| ) | [virtual] |
Implements SQL::Provider.
Definition at line 258 of file m_sqlite.cpp.
References active_schema, SQL::Data::data, Anope::string::erase(), Anope::string::length(), SQL::Query::SetValue(), and stringify().
| Anope::string SQLiteService::BuildQuery | ( | const Query & | q | ) |
Definition at line 304 of file m_sqlite.cpp.
References SQL::Query::parameters, SQL::Query::query, and Anope::string::replace_all_cs().
Referenced by RunQuery().
| std::vector< Query > SQLiteService::CreateTable | ( | const Anope::string & | table, | |
| const Data & | data | |||
| ) | [virtual] |
Implements SQL::Provider.
Definition at line 191 of file m_sqlite.cpp.
References active_schema, SQL::Data::data, SQL::Result::Get(), SQL::Data::GetType(), LOG_DEBUG, Anope::string::push_back(), SQL::Result::Rows(), and RunQuery().
| Anope::string SQLiteService::Escape | ( | const Anope::string & | query | ) | [private] |
Definition at line 296 of file m_sqlite.cpp.
References Anope::string::c_str().
| Anope::string SQLiteService::FromUnixtime | ( | time_t | t | ) | [virtual] |
| Query SQLiteService::GetTables | ( | const Anope::string & | prefix | ) | [virtual] |
Implements SQL::Provider.
Definition at line 291 of file m_sqlite.cpp.
Implements SQL::Provider.
Definition at line 144 of file m_sqlite.cpp.
References Anope::string::empty(), SQL::Result::GetError(), SQL::Interface::OnError(), SQL::Interface::OnResult(), and RunQuery().
Implements SQL::Provider.
Definition at line 153 of file m_sqlite.cpp.
References SQLiteResult::AddRow(), BuildQuery(), Anope::string::c_str(), SQL::Result::id, Anope::string::length(), and sql.
Referenced by CreateTable(), and Run().
std::map<Anope::string, std::set<Anope::string> > SQLiteService::active_schema [private] |
Definition at line 34 of file m_sqlite.cpp.
Referenced by BuildInsert(), and CreateTable().
Anope::string SQLiteService::database [private] |
Definition at line 36 of file m_sqlite.cpp.
Referenced by SQLiteService().
sqlite3* SQLiteService::sql [private] |
Definition at line 38 of file m_sqlite.cpp.
Referenced by RunQuery(), SQLiteService(), and ~SQLiteService().
1.7.1