Wt::Dbo::backend::MySQL Class Reference

A MySQL connection. More...

#include <MySQL.h>

List of all members.

Public Member Functions

 MySQL (const std::string &db, const std::string &dbuser="root", const std::string &dbpasswd="", const std::string dbhost="localhost")
 Opens a new MySQL backend connection.
 MySQL (const MySQL &other)
 Copies a MySQL connection.
 ~MySQL ()
 Destructor.
MYSQL * connection ()
 Returns the underlying connection.
Methods that return dialect information

virtual std::string autoincrementSql () const
virtual std::string autoincrementType () const
virtual std::string autoincrementInsertSuffix () const
virtual const char * dateTimeType (SqlDateTimeType type) const
virtual const char * blobType () const

Detailed Description

A MySQL connection.

This class provides the backend implementation for MySQL databases. It has been tested against MySQL 5.1.28.

In order to work properly with Wt::Dbo, MySQL must be configured with


Constructor & Destructor Documentation

Wt::Dbo::backend::MySQL::MySQL ( const std::string &  db,
const std::string &  dbuser = "root",
const std::string &  dbpasswd = "",
const std::string  dbhost = "localhost" 
)

Opens a new MySQL backend connection.

Parameters:
db The database name.
dbuser The username for the database connection - defaults to "root".
dbpasswd The password for the database conection - defaults to an empty string.
dbhost The hostname of the database - defaults to localhost.
Wt::Dbo::backend::MySQL::~MySQL (  ) 

Destructor.

Closes the connection.


Generated on Mon Jun 28 21:58:03 2010 for Wt by doxygen 1.6.2