|
|||
|
|||
|
Inheritance diagram for SQLConn:


Public Member Functions | |
| SQLConn (InspIRCd *SI, Module *m, const SQLhost &hi) | |
| ~SQLConn () | |
| SQLerror | Query (SQLrequest &req) |
| void | ResultReady (MsSQLResult *res, int cols, char **data, char **colnames) |
| void | AffectedReady (MsSQLResult *res) |
| bool | OpenDB () |
| void | CloseDB () |
| SQLhost | GetConfHost () |
| void | SendResults () |
| void | ClearResults () |
| void | SendNotify () |
| void | DoLeadingQuery () |
| SQLConn (InspIRCd *SI, Module *self, const SQLhost &hi) | |
| ~SQLConn () | |
| virtual void | HandleEvent (EventType et, int errornum) |
| Process an I/O event. | |
| bool | DoConnect () |
| bool | DoPoll () |
| bool | DoConnectedPoll () |
| bool | DoResetPoll () |
| bool | OnDataReady () |
| bool | OnWriteReady () |
| bool | OnConnected () |
| void | DelayReconnect () |
| bool | DoEvent () |
| SQLerror | DoQuery (SQLrequest &req) |
| SQLerror | Query (const SQLrequest &req) |
| void | OnUnloadModule (Module *mod) |
| const SQLhost | GetConfHost () |
| void | Close () |
| SQLConn (InspIRCd *SI, Module *m, const SQLhost &hi) | |
| ~SQLConn () | |
| SQLerror | Query (SQLrequest &req) |
| void | ResultReady (SQLite3Result *res, int cols, char **data, char **colnames) |
| void | AffectedReady (SQLite3Result *res) |
| int | OpenDB () |
| void | CloseDB () |
| SQLhost | GetConfHost () |
| void | SendResults () |
| void | ClearResults () |
| void | SendNotify () |
Static Public Member Functions | |
| static int | HandleMessage (const TDSCONTEXT *pContext, TDSSOCKET *pTdsSocket, TDSMESSAGE *pMessage) |
| static int | HandleError (const TDSCONTEXT *pContext, TDSSOCKET *pTdsSocket, TDSMESSAGE *pMessage) |
| static int | QueryResult (void *params, int argc, char **argv, char **azColName) |
| static void | QueryUpdateHook (void *params, int eventid, char const *azSQLite, char const *azColName, sqlite_int64 rowid) |
Public Attributes | |
| QueryQueue | queue |
Private Attributes | |
| ResultQueue | results |
| InspIRCd * | ServerInstance |
| Module * | mod |
| SQLhost | host |
| TDSLOGIN * | login |
| TDSSOCKET * | sock |
| TDSCONTEXT * | context |
| InspIRCd * | ServerInstance |
| SQLhost | confhost |
| Module * | us |
| PGconn * | sql |
| SQLstatus | status |
| bool | qinprog |
| time_t | idle |
| InspIRCd * | ServerInstance |
| Module * | mod |
| sqlite3 * | conn |
Definition at line 284 of file m_mssql.cpp.
|
||||||||||||||||
|
Definition at line 298 of file m_mssql.cpp. References CloseDB(), DEFAULT, host, SQLhost::id, Mutex::Lock(), LogManager::Log(), InspIRCd::Logs, SQLhost::name, OpenDB(), ServerInstance, sock, and Mutex::Unlock(). |
|
|
Definition at line 331 of file m_mssql.cpp. References CloseDB(). |
|
||||||||||||||||
|
Definition at line 324 of file m_pgsql.cpp. References ConvToStr(), DEFAULT, DelayReconnect(), DoConnect(), SQLhost::id, idle, LogManager::Log(), InspIRCd::Logs, ServerInstance, and InspIRCd::Time(). |
|
|
Definition at line 335 of file m_pgsql.cpp. References Close(). |
|
||||||||||||||||
|
Definition at line 272 of file m_sqlite3.cpp. References CloseDB(), DEFAULT, host, SQLhost::id, LogManager::Log(), InspIRCd::Logs, OpenDB(), and ServerInstance. |
|
|
Definition at line 282 of file m_sqlite3.cpp. References CloseDB(). |
|
|
Definition at line 386 of file m_sqlite3.cpp. References SQLite3Result::UpdateAffectedCount(). |
|
|
Definition at line 516 of file m_mssql.cpp. References MsSQLResult::UpdateAffectedCount(). |
|
|
Definition at line 428 of file m_sqlite3.cpp. References results. |
|
|
Definition at line 603 of file m_mssql.cpp. References results. |
|
|
Definition at line 688 of file m_pgsql.cpp. References DEBUG, SocketEngine::DelFd(), LogManager::Log(), InspIRCd::Logs, InspIRCd::SE, ServerInstance, and sql. Referenced by ~SQLConn(). |
|
|
Definition at line 396 of file m_sqlite3.cpp. References conn. |
|
|
Definition at line 556 of file m_mssql.cpp. References context, login, and sock. Referenced by OpenDB(), SQLConn(), and ~SQLConn(). |
|
|
Definition at line 975 of file m_pgsql.cpp. References us. Referenced by DoConnectedPoll(), HandleEvent(), and SQLConn(). |
|
|
Definition at line 361 of file m_pgsql.cpp. References confhost, DEBUG, DoPoll(), EventHandler::fd, SQLhost::GetDSN(), LogManager::Log(), InspIRCd::Logs, ServerInstance, and sql. Referenced by SQLConn(). |
|
|
Definition at line 411 of file m_pgsql.cpp. References DelayReconnect(), DoQuery(), SQLresult::error, QueryQueue::front(), Request::GetSource(), SQLerror::Id(), SQLrequest::id, idle, QueryQueue::pop(), SQLquery::q, qinprog, SQLrequest::query, SQLresult::query, queue, Request::Send(), ServerInstance, sql, SQL_QREPLY_FAIL, SQLerror::Str(), InspIRCd::Time(), QueryQueue::totalsize(), and us. Referenced by DoEvent(), DoPoll(), and DoResetPoll(). |
|
|
Definition at line 543 of file m_pgsql.cpp. References CREAD, CWRITE, DoConnectedPoll(), DoPoll(), DoResetPoll(), RREAD, RWRITE, and status. Referenced by OnConnected(), OnDataReady(), and OnWriteReady(). |
|
|
Definition at line 647 of file m_mssql.cpp. References SQLrequest::error, QueryQueue::front(), Query(), and queue. Referenced by QueryThread::Run(). |
|
|
Definition at line 390 of file m_pgsql.cpp. References CREAD, CWRITE, DoConnectedPoll(), InspIRCd::SE, ServerInstance, sql, status, SocketEngine::WantWrite(), and WWRITE. Referenced by DoConnect(), DoEvent(), and DoResetPoll(). |
|
|
Definition at line 562 of file m_pgsql.cpp. References DEBUG, LogManager::Log(), InspIRCd::Logs, SQLquery::p, SQLquery::q, qinprog, SQLrequest::query, ServerInstance, sql, SQL_BAD_CONN, SQL_QSEND_FAIL, status, WREAD, and WWRITE. Referenced by DoConnectedPoll(), and Query(). |
|
|
Definition at line 503 of file m_pgsql.cpp. References CREAD, CWRITE, DoConnectedPoll(), DoPoll(), InspIRCd::SE, ServerInstance, sql, status, SocketEngine::WantWrite(), and WWRITE. Referenced by DoEvent(). |
|
|
Definition at line 402 of file m_sqlite3.cpp. References host. |
|
|
Definition at line 683 of file m_pgsql.cpp. References confhost. |
|
|
Definition at line 575 of file m_mssql.cpp. References host. |
|
||||||||||||||||
|
Definition at line 502 of file m_mssql.cpp. References DEFAULT, host, SQLhost::id, Mutex::Lock(), LogManager::Log(), InspIRCd::Logs, ServerInstance, and Mutex::Unlock(). Referenced by OpenDB(). |
|
||||||||||||
|
Process an I/O event. You MUST implement this function in your derived class, and it will be called whenever read or write events are received, depending on what your functions Readable() and Writeable() returns and wether you previously made a call to SocketEngine::WantWrite().
Implements EventHandler. Definition at line 340 of file m_pgsql.cpp. References DelayReconnect(), EVENT_ERROR, EVENT_READ, EVENT_WRITE, OnDataReady(), and OnWriteReady(). |
|
||||||||||||||||
|
Definition at line 493 of file m_mssql.cpp. References DEBUG, host, SQLhost::id, Mutex::Lock(), LogManager::Log(), InspIRCd::Logs, ServerInstance, and Mutex::Unlock(). Referenced by OpenDB(). |
|
|
Definition at line 536 of file m_pgsql.cpp. References DoEvent(). |
|
|
Definition at line 524 of file m_pgsql.cpp. References DoEvent(). Referenced by HandleEvent(). |
|
|
Definition at line 678 of file m_pgsql.cpp. References QueryQueue::PurgeModule(), and queue. |
|
|
Definition at line 530 of file m_pgsql.cpp. References DoEvent(). Referenced by HandleEvent(). |
|
|
Definition at line 391 of file m_sqlite3.cpp. References conn, SQLhost::host, and host. |
|
|
Definition at line 521 of file m_mssql.cpp. References CloseDB(), conn, context, HandleError(), HandleMessage(), SQLhost::host, host, login, SQLhost::pass, SQLhost::port, sock, and SQLhost::user. Referenced by SQLConn(). |
|
|
Definition at line 287 of file m_sqlite3.cpp. References conn, SQLresult::dbid, Request::GetSource(), host, SQLhost::id, SQLrequest::id, mod, SQLquery::p, SQLquery::q, SQLresult::query, SQLrequest::query, QueryResult(), QueryUpdateHook(), results, SendNotify(), and SQL_QSEND_FAIL. |
|
|
Definition at line 662 of file m_pgsql.cpp. References DoQuery(), QueryQueue::front(), QueryQueue::push(), qinprog, queue, and QueryQueue::totalsize(). |
|
|
Definition at line 336 of file m_mssql.cpp. References SQLresult::dbid, DEBUG, Request::GetSource(), host, SQLhost::id, SQLrequest::id, Mutex::Lock(), LogManager::Log(), InspIRCd::Logs, MAXBUF, mod, SQLquery::p, SQLquery::q, SQLresult::query, SQLrequest::query, ResultReady(), results, SendNotify(), ServerInstance, sock, SQL_BAD_CONN, SQL_QSEND_FAIL, Mutex::Unlock(), and MsSQLResult::UpdateAffectedCount(). Referenced by DoLeadingQuery(). |
|
||||||||||||||||||||
|
Definition at line 368 of file m_sqlite3.cpp. Referenced by Query(). |
|
||||||||||||||||||||||||
|
Definition at line 375 of file m_sqlite3.cpp. Referenced by Query(). |
|
||||||||||||||||||||
|
Definition at line 381 of file m_sqlite3.cpp. References SQLite3Result::AddRow(). |
|
||||||||||||||||||||
|
Definition at line 511 of file m_mssql.cpp. References MsSQLResult::AddRow(). Referenced by Query(). |
|
|
Definition at line 438 of file m_sqlite3.cpp. References AF_FAMILY, SQLiteListener::GetPort(), irc::sockets::insp_aton(), and QueueFD. |
|
|
Definition at line 613 of file m_mssql.cpp. References AF_FAMILY, MsSQLListener::GetPort(), irc::sockets::insp_aton(), and QueueFD. Referenced by Query(). |
|
|
Definition at line 407 of file m_sqlite3.cpp. References Request::GetDest(), results, and Request::Send(). |
|
|
Definition at line 580 of file m_mssql.cpp. References Request::GetDest(), Mutex::Lock(), results, Request::Send(), and Mutex::Unlock(). |
|
|
Definition at line 315 of file m_pgsql.cpp. Referenced by DoConnect(), and GetConfHost(). |
|
|
Definition at line 269 of file m_sqlite3.cpp. |
|
|
Definition at line 293 of file m_mssql.cpp. |
|
|
Definition at line 290 of file m_mssql.cpp. Referenced by GetConfHost(), HandleError(), HandleMessage(), OpenDB(), Query(), and SQLConn(). |
|
|
Definition at line 321 of file m_pgsql.cpp. Referenced by DoConnectedPoll(), and SQLConn(). |
|
|
Definition at line 291 of file m_mssql.cpp. |
|
|
Definition at line 267 of file m_sqlite3.cpp. |
|
|
Definition at line 289 of file m_mssql.cpp. Referenced by Query(). |
|
|
Definition at line 319 of file m_pgsql.cpp. Referenced by DoConnectedPoll(), DoQuery(), and Query(). |
|
|
Definition at line 296 of file m_mssql.cpp. Referenced by DoConnectedPoll(), DoLeadingQuery(), OnUnloadModule(), Query(), and QueryThread::Run(). |
|
|
Definition at line 287 of file m_mssql.cpp. Referenced by ClearResults(), Query(), and SendResults(). |
|
|
Definition at line 266 of file m_sqlite3.cpp. |
|
|
Definition at line 314 of file m_pgsql.cpp. |
|
|
Definition at line 288 of file m_mssql.cpp. Referenced by Close(), DoConnect(), DoConnectedPoll(), DoPoll(), DoQuery(), DoResetPoll(), HandleError(), HandleMessage(), Query(), and SQLConn(). |
|
|
Definition at line 292 of file m_mssql.cpp. |
|
|
Definition at line 317 of file m_pgsql.cpp. Referenced by Close(), DoConnect(), DoConnectedPoll(), DoPoll(), DoQuery(), and DoResetPoll(). |
|
|
Definition at line 318 of file m_pgsql.cpp. Referenced by DoEvent(), DoPoll(), DoQuery(), and DoResetPoll(). |
|
|
Definition at line 316 of file m_pgsql.cpp. Referenced by DelayReconnect(), and DoConnectedPoll(). |