|
Covalent Bond
0.0.1-alpha
'covalent bond' is a data middle office. As a 2022-2023 Fall SWE final project.
|
#include <cbVirtualDevice.hpp>


Public Member Functions | |
| ~cbMySqlDevice () | |
| cbMySqlDevice (int32_t _idx) | |
| cbMySqlDevice (int32_t _idx, const std::string &_port, const std::string &_host, const std::string &_userName, const std::string &_passWord, const std::string &_dataBaseName, const std::string &_charSet="") | |
| void | updateUrl () override final |
| WFMySQLTask * | query (const std::string &q, const mysql_callback &callback_func=nullptr) |
| std::vector< WFMySQLTask * > | sequentialQuery (const std::vector< std::string > &q, const std::vector< mysql_callback > &callback_func) |
| int32_t | getIdx () |
| Get the Idx object. More... | |
Public Member Functions inherited from trivial::cbVirtualDevice | |
| cbVirtualDevice ()=default | |
| cbVirtualDevice (const std::string &_port, const std::string &_host, const std::string &_userName, const std::string &_passWord, const std::string &_charSet, const std::string _dataBaseName, const virtualDeviceType &v) | |
| void | reloadConnection (const std::string &_port, const std::string &_host, const std::string &_userName, const std::string &_passWord, const std::string &_charSet, const std::string &_dataBaseName) |
Static Public Member Functions | |
| static void | execMain (WFMySQLTask *t) |
| User should not use this function. All task should be added to graph node in order to execute all task that follows DAG flow. THIS FUNCTION JUST FOR TEST. More... | |
| static void | execMain (const std::vector< WFMySQLTask * > &t) |
| User should not use this function. All task should be added to graph node in order to execute all task that follows DAG flow. THIS FUNCTION JUST FOR TEST. More... | |
Private Attributes | |
| int32_t | m_idx = 0 |
| WFMySQLConnection * | m_conn = nullptr |
Additional Inherited Members | |
Public Attributes inherited from trivial::cbVirtualDevice | |
| virtualDeviceType | deviceType = virtualDeviceType::MySql |
| std::string | port |
| std::string | host |
| std::string | usrName |
| std::string | passWord |
| std::string | charSet |
| std::string | dataBaseName |
| std::string | Url |
Definition at line 95 of file cbVirtualDevice.hpp.
|
inline |
Definition at line 96 of file cbVirtualDevice.hpp.
References m_conn.
|
inline |
Definition at line 100 of file cbVirtualDevice.hpp.
References m_conn.
|
inline |
Definition at line 101 of file cbVirtualDevice.hpp.
References m_conn, trivial::MySql, and trivial::cbVirtualDevice::Url.
|
static |
User should not use this function. All task should be added to graph node in order to execute all task that follows DAG flow. THIS FUNCTION JUST FOR TEST.
| t |
Definition at line 53 of file cbVirtualDevice.cpp.
|
static |
User should not use this function. All task should be added to graph node in order to execute all task that follows DAG flow. THIS FUNCTION JUST FOR TEST.
| t |
Definition at line 51 of file cbVirtualDevice.cpp.
| int32_t trivial::cbMySqlDevice::getIdx | ( | ) |
Get the Idx object.
Definition at line 29 of file cbVirtualDevice.cpp.
References m_idx.
| WFMySQLTask * trivial::cbMySqlDevice::query | ( | const std::string & | q, |
| const mysql_callback & | callback_func = nullptr |
||
| ) |
| q | |
| callback_func |
Definition at line 31 of file cbVirtualDevice.cpp.
References m_conn.
Referenced by cb::graph::cbVirtualDeviceNode::generateTask().

| std::vector< WFMySQLTask * > trivial::cbMySqlDevice::sequentialQuery | ( | const std::vector< std::string > & | q, |
| const std::vector< mysql_callback > & | callback_func | ||
| ) |
| q | |
| callback_func |
Definition at line 35 of file cbVirtualDevice.cpp.
References m_conn.
|
finaloverridevirtual |
Implements trivial::cbVirtualDevice.
Definition at line 17 of file cbVirtualDevice.cpp.
References trivial::cbVirtualDevice::charSet, trivial::cbVirtualDevice::dataBaseName, trivial::cbVirtualDevice::host, m_conn, trivial::cbVirtualDevice::passWord, trivial::cbVirtualDevice::port, trivial::cbVirtualDevice::Url, and trivial::cbVirtualDevice::usrName.
Referenced by trivial::cbRedisDevice::cbRedisDevice().

|
private |
Definition at line 171 of file cbVirtualDevice.hpp.
Referenced by cbMySqlDevice(), query(), sequentialQuery(), updateUrl(), and ~cbMySqlDevice().
|
private |
Definition at line 170 of file cbVirtualDevice.hpp.
Referenced by getIdx().
1.8.17