Classes | Functions

mysqlpl Namespace Reference

Classes

class  MSqlException
 MySQL Errorhandling. More...
class  MSqlEnv
class  MSqlConnection
 simple MySQL login to database More...
class  ColumnType
 column description More...
class  ColumnData
class  BindVector
class  SqlRecord
 a record to hold return columns for a given statement More...
class  SqlQuery
class  SqlStatement
 a MySQL SQL statement More...

Functions

 version (XMLSTORAGE)
void mysqlpl_check_error (MYSQL *db)
 error handling functions
void mysqlpl_check_error (MYSQL *db, int res)
void mysqlpl_check_error (MYSQL *db, my_bool b)
 version (MYSQLPL_PREP_STMT)
alias vector (ColumnData) ColumnDataVector

Function Documentation

void mysqlpl::mysqlpl_check_error ( MYSQL *  db )

error handling functions

Definition at line 364 of file mysqlpl.d.

Referenced by mysqlpl::MSqlConnection::connect(), mysqlpl::SqlStatement::execute(), mysqlpl::SqlStatement::fetch(), mysqlpl::SqlStatement::prepare(), mysqlpl::SqlStatement::version(), and version().

{
    uint error = mysqlpl_errno(db);

    if (error != 0)
        throw new MSqlException(db);
}

Here is the caller graph for this function:

void mysqlpl::mysqlpl_check_error ( MYSQL *  db,
my_bool  b 
)

Definition at line 382 of file mysqlpl.d.

{
    if (b) {
        uint error = mysqlpl_errno(db);

        if (error != 0)
            throw new MSqlException(db);
    }
}
void mysqlpl::mysqlpl_check_error ( MYSQL *  db,
int  res 
)

Definition at line 372 of file mysqlpl.d.

{
    if (res) {
        uint error = mysqlpl_errno(db);

        if (error != 0)
            throw new MSqlException(db);
    }
}
alias mysqlpl::vector ( ColumnData   )
mysqlpl::version ( MYSQLPL_PREP_STMT   )

indicator variable

int with indicator variable

64 bit integer with indicator variable

wrapper for MYSQL_TIME

factory for call parameters for MySQL define functions

indicator variable

int with indicator variable

64 bit integer with indicator variable

wrapper for MYSQL_TIME

factory for call parameters for MySQL define functions

Definition at line 392 of file mysqlpl.d.

References mysqlpl_check_error().

                           {
void mysqlpl_check_error(MYSQL_STMT* s)
{
    uint error = mysqlpl_stmt_errno(s);

    if (error != 0)
        throw new MSqlException(s);
}

void mysqlpl_check_error(MYSQL_STMT* s, int res)
{
    if (res) {
        uint error = mysqlpl_stmt_errno(s);

        if (error != 0)
            throw new MSqlException(s);
    }
}

void mysqlpl_check_error(MYSQL_STMT* s, my_bool b)
{
    if (b) {
        uint error = mysqlpl_stmt_errno(s);

        if (error != 0)
            throw new MSqlException(s);
    }
}
} // version(MYSQLPL_PREP_STMT)

Here is the call graph for this function:

mysqlpl::version ( XMLSTORAGE   )