|
|||
|
|||
|
#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::string > | ParamL |
| A list of format parameters for an SQLquery object. | |
| 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. | |
| 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. | |
|
|
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(). |
|
|
Definition at line 25 of file m_sqlv2.h. Referenced by ModuleTestClient::OnRequest(), ModuleSQLOper::OnRequest(), ModuleSQLLog::OnRequest(), and ModuleSQLAuth::OnRequest(). |
|
|
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(). |
|
|
A list of format parameters for an SQLquery object.
|
|
|
A list of items which make up a row of a result or table (tuple) This does not include field names.
|
|
|
A list of items which make up a row of a result or table (tuple) This also includes the field names.
|
|
|
Defines the error types which SQLerror may be set to.
|
|
||||||||||||
|
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. |
|
||||||||||||
|
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. |