Anope IRC Services  Version 2.0
Public Member Functions
SQL::Provider Class Referenceabstract

#include <sql.h>

Inheritance diagram for SQL::Provider:
Inheritance graph
[legend]
Collaboration diagram for SQL::Provider:
Collaboration graph
[legend]

Public Member Functions

 Provider (Module *c, const Anope::string &n)
 
virtual void Run (Interface *i, const Query &query)=0
 
virtual Result RunQuery (const Query &query)=0
 
virtual std::vector< QueryCreateTable (const Anope::string &table, const Data &data)=0
 
virtual Query BuildInsert (const Anope::string &table, unsigned int id, Data &data)=0
 
virtual Query GetTables (const Anope::string &prefix)=0
 
virtual Anope::string FromUnixtime (time_t)=0
 
- Public Member Functions inherited from Service
 Service (Module *o, const Anope::string &t, const Anope::string &n)
 
virtual ~Service ()
 
void Register ()
 
void Unregister ()
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Additional Inherited Members

- Static Public Member Functions inherited from Service
static ServiceFindService (const Anope::string &t, const Anope::string &n)
 
static std::vector< Anope::stringGetServiceKeys (const Anope::string &t)
 
static void AddAlias (const Anope::string &t, const Anope::string &n, const Anope::string &v)
 
static void DelAlias (const Anope::string &t, const Anope::string &n)
 
- Data Fields inherited from Service
Moduleowner
 
Anope::string type
 
Anope::string name
 

Detailed Description

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

Definition at line 197 of file sql.h.

Constructor & Destructor Documentation

SQL::Provider::Provider ( Module c,
const Anope::string n 
)
inline

Definition at line 200 of file sql.h.

Member Function Documentation

virtual Query SQL::Provider::BuildInsert ( const Anope::string table,
unsigned int  id,
Data data 
)
pure virtual

Implemented in MySQLService, and SQLiteService.

virtual std::vector<Query> SQL::Provider::CreateTable ( const Anope::string table,
const Data data 
)
pure virtual

Implemented in MySQLService, and SQLiteService.

virtual Anope::string SQL::Provider::FromUnixtime ( time_t  )
pure virtual

Implemented in MySQLService, and SQLiteService.

virtual Query SQL::Provider::GetTables ( const Anope::string prefix)
pure virtual

Implemented in MySQLService, and SQLiteService.

virtual void SQL::Provider::Run ( Interface i,
const Query query 
)
pure virtual

Implemented in MySQLService, and SQLiteService.

virtual Result SQL::Provider::RunQuery ( const Query query)
pure virtual

Implemented in MySQLService, and SQLiteService.


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