#include <MySQL.h>
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 |
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
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.
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.