Public Member Functions

SQLProvider Class Reference

#include <sql.h>

Inherits Service.

Inherited by MySQLService, and SQLiteService.

Collaboration diagram for SQLProvider:
Collaboration graph
[legend]

Public Member Functions

 SQLProvider (Module *c, const Anope::string &n)
virtual void Run (SQLInterface *i, const SQLQuery &query)=0
virtual SQLResult RunQuery (const SQLQuery &query)=0
virtual std::vector< SQLQueryCreateTable (const Anope::string &table, const Serialize::Data &data)=0
virtual SQLQuery BuildInsert (const Anope::string &table, unsigned int id, Serialize::Data &data)=0
virtual SQLQuery GetTables (const Anope::string &prefix)=0
virtual Anope::string FromUnixtime (time_t)=0

Detailed Description

Class providing the SQL service, modules call this to execute queries

Definition at line 122 of file sql.h.


Constructor & Destructor Documentation

SQLProvider::SQLProvider ( Module c,
const Anope::string n 
) [inline]

Definition at line 125 of file sql.h.


Member Function Documentation

virtual SQLQuery SQLProvider::BuildInsert ( const Anope::string table,
unsigned int  id,
Serialize::Data data 
) [pure virtual]

Implemented in MySQLService, and SQLiteService.

virtual std::vector<SQLQuery> SQLProvider::CreateTable ( const Anope::string table,
const Serialize::Data data 
) [pure virtual]

Implemented in MySQLService, and SQLiteService.

virtual Anope::string SQLProvider::FromUnixtime ( time_t   )  [pure virtual]

Implemented in MySQLService, and SQLiteService.

virtual SQLQuery SQLProvider::GetTables ( const Anope::string prefix  )  [pure virtual]

Implemented in MySQLService, and SQLiteService.

virtual void SQLProvider::Run ( SQLInterface i,
const SQLQuery query 
) [pure virtual]

Implemented in MySQLService, and SQLiteService.

virtual SQLResult SQLProvider::RunQuery ( const SQLQuery query  )  [pure virtual]

Implemented in MySQLService, and SQLiteService.


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