SourceForge.net Logo

DatabaseMySQL.cpp File Reference

#include "dbfacade.h"
#include <mysql/mysql.h>
#include <mysql/mysqld_error.h>
#include <stdlib.h>

Include dependency graph for DatabaseMySQL.cpp:


Classes

class  ResultRowMySQL
class  ResultMySQL
class  DatabaseMySQL

Defines

#define CHECK_EXCEPTION

Functions

 REGISTER_PLUGIN ("MySQL", DatabaseMySQL)

Define Documentation

#define CHECK_EXCEPTION

Value:

{       std::string msg(mysql_error(connection_)); \
        switch (mysql_errno(connection_)) \
        { \
                case 0: \
                        break; \
                case ER_DUP_ENTRY: \
                        throw dbfacade::UniqueConstraintException(msg); \
                case ER_ROW_IS_REFERENCED_2: \
                case ER_NO_REFERENCED_ROW_2: \
                        throw dbfacade::ForeignKeyConstraintException(msg); \
                default: \
                        throw dbfacade::Exception(msg); \
        } \
}


Function Documentation

REGISTER_PLUGIN ( "MySQL"  ,
DatabaseMySQL   
)


Generated on Mon Mar 16 20:04:30 2009 for libdbfacade.so by  doxygen 1.5.5