The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

m_sqlv2.h File Reference

#include <string>
#include <deque>
#include <map>
#include "modules.h"

Include dependency graph for m_sqlv2.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SQLexception
 The base class of SQL exceptions. More...
class  SQLbadColName
 An exception thrown when a bad column or row name or id is requested. More...
class  SQLerror
 SQLerror holds the error state of any SQLrequest or SQLresult. More...
class  SQLquery
 SQLquery provides a way to represent a query string, and its parameters in a type-safe way. More...
class  SQLrequest
 SQLrequest is sent to the SQL API to command it to run a query and return the result. More...
class  SQLfield
 This class contains a field's data plus a way to determine if the field is NULL or not without having to mess around with NULL pointers. More...
class  SQLresult
 SQLresult is a reply to a previous query. More...
class  SQLhost
 SQLHost represents a <database> config line and is useful for storing in a map and iterating on rehash to see which <database> tags was added/removed/unchanged. More...
class  QueryQueue
 QueryQueue, a queue of queries waiting to be executed. More...

Defines

#define SQLREQID   "SQLv2 Request"
 Identifiers used to identify Request types.
#define SQLRESID   "SQLv2 Result"
#define SQLSUCCESS   "You shouldn't be reading this (success)"

Typedefs

typedef std::deque< std::stringParamL
 A list of format parameters for an SQLquery object.
typedef std::vector< SQLfieldSQLfieldList
 A list of items which make up a row of a result or table (tuple) This does not include field names.
typedef std::map< std::string,
SQLfield
SQLfieldMap
 A list of items which make up a row of a result or table (tuple) This also includes the field names.

Enumerations

enum  SQLerrorNum {
  SQL_NO_ERROR, SQL_BAD_DBID, SQL_BAD_CONN, SQL_QSEND_FAIL,
  SQL_QREPLY_FAIL
}
 Defines the error types which SQLerror may be set to. More...

Functions

bool operator== (const SQLhost &l, const SQLhost &r)
 Overload operator== for two SQLhost objects for easy comparison.
bool operator!= (const SQLhost &l, const SQLhost &r)
 Overload operator!= for two SQLhost objects for easy comparison.


Define Documentation

#define SQLREQID   "SQLv2 Request"
 

Identifiers used to identify Request types.

Definition at line 24 of file m_sqlv2.h.

Referenced by ModuleSQLite3::OnRequest(), ModulePgSQL::OnRequest(), ModuleSQL::OnRequest(), and ModuleMsSQL::OnRequest().

#define SQLRESID   "SQLv2 Result"
 

Definition at line 25 of file m_sqlv2.h.

Referenced by ModuleTestClient::OnRequest(), ModuleSQLOper::OnRequest(), ModuleSQLLog::OnRequest(), and ModuleSQLAuth::OnRequest().

#define SQLSUCCESS   "You shouldn't be reading this (success)"
 

Definition at line 26 of file m_sqlv2.h.

Referenced by ModulePgSQL::ModulePgSQL(), ModuleTestClient::OnRequest(), ModuleSQLOper::OnRequest(), ModuleSQLLog::OnRequest(), ModuleSQLite3::OnRequest(), ModuleSQLAuth::OnRequest(), ModuleSQL::OnRequest(), and ModuleMsSQL::OnRequest().


Typedef Documentation

typedef std::deque<std::string> ParamL
 

A list of format parameters for an SQLquery object.

Definition at line 34 of file m_sqlv2.h.

typedef std::vector<SQLfield> SQLfieldList
 

A list of items which make up a row of a result or table (tuple) This does not include field names.

Definition at line 287 of file m_sqlv2.h.

typedef std::map<std::string, SQLfield> SQLfieldMap
 

A list of items which make up a row of a result or table (tuple) This also includes the field names.

Definition at line 291 of file m_sqlv2.h.


Enumeration Type Documentation

enum SQLerrorNum
 

Defines the error types which SQLerror may be set to.

Enumerator:
SQL_NO_ERROR 
SQL_BAD_DBID 
SQL_BAD_CONN 
SQL_QSEND_FAIL 
SQL_QREPLY_FAIL 

Definition at line 30 of file m_sqlv2.h.


Function Documentation

bool operator!= const SQLhost l,
const SQLhost r
 

Overload operator!= for two SQLhost objects for easy comparison.

Definition at line 466 of file m_sqlv2.h.

References SQLhost::host, SQLhost::id, SQLhost::name, SQLhost::pass, SQLhost::port, SQLhost::ssl, and SQLhost::user.

bool operator== const SQLhost l,
const SQLhost r
 

Overload operator== for two SQLhost objects for easy comparison.

Definition at line 460 of file m_sqlv2.h.

References SQLhost::host, SQLhost::id, SQLhost::name, SQLhost::pass, SQLhost::port, SQLhost::ssl, and SQLhost::user.