|
virtual std::string | getHostname () const |
|
virtual void | setHostname (const std::string &hostname) |
|
virtual std::string | getUser () const |
|
virtual void | setUser (const std::string &user) |
|
virtual std::string | getPassword () const |
|
virtual void | setPassword (const std::string &password) |
|
virtual std::string | getDatabase () const |
|
virtual void | setDatabase (const std::string &database) |
|
virtual uint32_t | getPort () const |
|
virtual void | setPort (uint32_t port) |
|
virtual bool | isAlive (bool ping=false) |
|
virtual std::string | escapeName (const std::string &string) const throw (Exception&) |
|
virtual void | open ()=0 throw (Exception&) |
|
virtual void | close ()=0 |
|
virtual std::string | escape (const std::string &string) const =0 throw (Exception&) |
|
virtual std::string | version () const =0 |
|
virtual Result * | query (const std::string &query) const =0 throw (Exception&) |
|
virtual Result * | query_x (const std::string &query) const =0 throw (Exception&) |
|
virtual void | lock () |
|
virtual void | unlock () |
|
|
static pthread_mutex_t | staticConnectionLock = PTHREAD_MUTEX_INITIALIZER |
|
|
std::string | hostname |
|
std::string | user |
|
std::string | password |
|
std::string | database |
|
uint32_t | port |
|
bool | alive |
|
char | quoteName |
|
pthread_mutex_t * | connectionLock |
|
Definition at line 12 of file connection.h.
std::string nodejs_db::Connection::escapeName |
( |
const std::string & |
string | ) |
const throw (Exception&) |
|
virtual |
escape the given string. e.g. first.second is escaped as 'first'.'second' is escapeChar is "'"
- Parameters
-
[in] | string | String to be escaped |
- Exceptions
-
Definition at line 67 of file connection.cxx.
The documentation for this class was generated from the following files: