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

SQLhost Class Reference

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...

#include <m_sqlv2.h>

Collaboration diagram for SQLhost:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SQLhost ()
 SQLhost (const std::string &i, const std::string &h, unsigned int p, const std::string &n, const std::string &u, const std::string &pa, bool s)
std::string GetDSN ()
 Overload this to return a correct Data source Name (DSN) for the current SQL module.

Public Attributes

std::string id
std::string host
std::string ip
unsigned int port
std::string name
std::string user
std::string pass
bool ssl

Detailed Description

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.

Definition at line 430 of file m_sqlv2.h.


Constructor & Destructor Documentation

SQLhost::SQLhost  )  [inline]
 

Definition at line 442 of file m_sqlv2.h.

SQLhost::SQLhost const std::string i,
const std::string h,
unsigned int  p,
const std::string n,
const std::string u,
const std::string pa,
bool  s
[inline]
 

Definition at line 447 of file m_sqlv2.h.


Member Function Documentation

std::string SQLhost::GetDSN  ) 
 

Overload this to return a correct Data source Name (DSN) for the current SQL module.

Definition at line 49 of file m_pgsql.cpp.

References ip, name, pass, port, ssl, and user.

Referenced by SQLConn::DoConnect().


Member Data Documentation

std::string SQLhost::host
 

Definition at line 434 of file m_sqlv2.h.

Referenced by SQLConnection::Connect(), SQLConnection::GetHost(), ModuleSQLite3::HostInConf(), ModulePgSQL::HostInConf(), HostInConf(), ModuleMsSQL::HostInConf(), LoadDatabases(), SQLConn::OpenDB(), operator!=(), operator==(), ModuleSQLite3::ReadConf(), ModulePgSQL::ReadConf(), and ModuleMsSQL::ReadConf().

std::string SQLhost::id
 

Definition at line 433 of file m_sqlv2.h.

Referenced by ModuleSQLite3::AddConn(), ModulePgSQL::AddConn(), ModuleMsSQL::AddConn(), SQLConnection::GetID(), SQLConn::HandleError(), SQLConn::HandleMessage(), ModuleSQLite3::HostInConf(), ModulePgSQL::HostInConf(), HostInConf(), ModuleMsSQL::HostInConf(), LoadDatabases(), operator!=(), operator==(), SQLConn::Query(), ModuleSQLite3::ReadConf(), ModulePgSQL::ReadConf(), ModuleMsSQL::ReadConf(), and SQLConn::SQLConn().

std::string SQLhost::ip
 

Definition at line 435 of file m_sqlv2.h.

Referenced by GetDSN(), SQLresolver::OnLookupComplete(), and ModulePgSQL::ReadConf().

std::string SQLhost::name
 

Definition at line 437 of file m_sqlv2.h.

Referenced by SQLConnection::Connect(), GetDSN(), ModuleSQLite3::HostInConf(), ModulePgSQL::HostInConf(), HostInConf(), ModuleMsSQL::HostInConf(), LoadDatabases(), operator!=(), operator==(), ModuleSQLite3::ReadConf(), ModulePgSQL::ReadConf(), ModuleMsSQL::ReadConf(), and SQLConn::SQLConn().

std::string SQLhost::pass
 

Definition at line 439 of file m_sqlv2.h.

Referenced by SQLConnection::Connect(), GetDSN(), ModuleSQLite3::HostInConf(), ModulePgSQL::HostInConf(), HostInConf(), ModuleMsSQL::HostInConf(), LoadDatabases(), SQLConn::OpenDB(), operator!=(), operator==(), ModuleSQLite3::ReadConf(), ModulePgSQL::ReadConf(), and ModuleMsSQL::ReadConf().

unsigned int SQLhost::port
 

Definition at line 436 of file m_sqlv2.h.

Referenced by SQLConnection::Connect(), GetDSN(), ModuleSQLite3::HostInConf(), ModulePgSQL::HostInConf(), HostInConf(), ModuleMsSQL::HostInConf(), LoadDatabases(), SQLConn::OpenDB(), operator!=(), operator==(), ModuleSQLite3::ReadConf(), ModulePgSQL::ReadConf(), and ModuleMsSQL::ReadConf().

bool SQLhost::ssl
 

Definition at line 440 of file m_sqlv2.h.

Referenced by GetDSN(), ModulePgSQL::HostInConf(), HostInConf(), LoadDatabases(), operator!=(), operator==(), and ModulePgSQL::ReadConf().

std::string SQLhost::user
 

Definition at line 438 of file m_sqlv2.h.

Referenced by SQLConnection::Connect(), GetDSN(), ModuleSQLite3::HostInConf(), ModulePgSQL::HostInConf(), HostInConf(), ModuleMsSQL::HostInConf(), LoadDatabases(), SQLConn::OpenDB(), operator!=(), operator==(), ModuleSQLite3::ReadConf(), ModulePgSQL::ReadConf(), and ModuleMsSQL::ReadConf().


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