35 #if !defined(MYSQLPP_CONNECTION_H) 
   36 #define MYSQLPP_CONNECTION_H 
   47 #if !defined(DOXYGEN_IGNORE) 
   49 class MYSQLPP_EXPORT Query;
 
  107         Connection(
const char* db, 
const char* server = 0, 
const char* user = 0,
 
  108                         const char* password = 0, 
unsigned int port = 0);
 
  121         std::string client_version() 
const;
 
  131         virtual bool connect(
const char* db = 0, 
const char* server = 0,
 
  132                         const char* user = 0, 
const char* password = 0,
 
  133                         unsigned int port = 0);
 
  138         bool connected() 
const;
 
  146         ulonglong count_rows(
const std::string& table);
 
  153         bool create_db(
const std::string& db);
 
  174         bool drop_db(
const std::string& db);
 
  185         const char* error() 
const;
 
  192         std::string ipc_info() 
const;
 
  199         bool kill(
unsigned long tid) 
const;
 
  220         operator private_bool_type()
 const 
  222                 return copacetic_ ? &Connection::copacetic_ : 0;
 
  239         int protocol_version() 
const;
 
  251         Query query(
const char* qstr = 0);
 
  256         Query query(
const std::string& qstr);
 
  264         bool select_db(
const std::string& db);
 
  267         std::string server_version() 
const;
 
  292         bool set_option(
Option* o);
 
  298         std::string server_status() 
const;
 
  302         static bool thread_aware();
 
  306         static void thread_end();
 
  312         unsigned long thread_id();
 
  333         static bool thread_start();
 
  339         void build_error_message(
const char* core);
 
  348         bool parse_ipc_method(
const char* server, std::string& host,
 
  349                         unsigned int& port, std::string& socket_name);
 
  367 #endif // !defined(MYSQLPP_CONNECTION_H) 
Declares the UnixDomainSocketConnection class. 
Declares the TCPConnection class. 
std::string error_message_
MySQL++ specific error, if any. 
Definition: connection.h:352
Declares the WindowsNamedPipeConnection class. 
Manages the connection to the database server. 
Definition: connection.h:59
Define abstract interface for all *Option subclasses. 
Definition: options.h:57
Interface allowing a class to have optional exceptions. 
Definition: noexceptions.h:71
This file includes top-level definitions for use both internal to the library, and outside it...
Declares the Option class hierarchy, used to implement connection options in Connection and DBDriver ...
DBDriver * driver()
Returns a reference to the current database driver. 
Definition: connection.h:167
A class for building and executing SQL queries. 
Definition: query.h:121
Declares interface that allows exceptions to be optional. 
Provides a thin abstraction layer over the underlying database client library. 
Definition: dbdriver.h:57