Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

mysqlpp::mysql_type_info Class Reference

Holds basic type information for ColData. More...

#include <type_info.h>

List of all members.

Public Methods

const char * name () const
 Returns an implementation-defined name of the C++ type.

const char * sql_name () const
 Returns the name of the SQL type.

const std::type_info & c_type () const
 Returns the type_info for the C++ type associated with the SQL type.

const mysql_type_info base_type () const
 Returns the type_info for the C++ type inside of the mysqlpp::Null type.

int id () const
 Returns the ID of the SQL type.

bool quote_q () const
 Returns true if the SQL type is of a type that needs to be quoted.

bool escape_q () const
 Returns true if the SQL type is of a type that needs to be escaped.

bool before (mysql_type_info &b)
 Provides a way to compare two types for sorting.


Detailed Description

Holds basic type information for ColData.

Class to hold basic type information for mysqlpp::ColData.


Member Function Documentation

const mysql_type_info mysqlpp::mysql_type_info::base_type   [inline]
 

Returns the type_info for the C++ type inside of the mysqlpp::Null type.

Returns the type_info for the C++ type inside the mysqlpp::Null type. If the type is not Null then this is the same as c_type().

bool mysqlpp::mysql_type_info::before mysql_type_info &    b [inline]
 

Provides a way to compare two types for sorting.

Returns true if the SQL ID of this type is lower than that of another. Used by mysqlpp::type_info_cmp when comparing types.

const std::type_info & mysqlpp::mysql_type_info::c_type   [inline]
 

Returns the type_info for the C++ type associated with the SQL type.

Returns the C++ type_info record corresponding to the SQL type.

bool mysqlpp::mysql_type_info::escape_q  
 

Returns true if the SQL type is of a type that needs to be escaped.

Returns:
true if the type needs to be escaped for syntactically correct SQL.

int mysqlpp::mysql_type_info::id   const [inline]
 

Returns the ID of the SQL type.

Returns the ID number MySQL uses for this type. Note: Do not depend on the value of this ID as it may change between MySQL versions.

const char * mysqlpp::mysql_type_info::name   [inline]
 

Returns an implementation-defined name of the C++ type.

Returns the name that would be returned by typeid().name() for the C++ type associated with the SQL type.

bool mysqlpp::mysql_type_info::quote_q  
 

Returns true if the SQL type is of a type that needs to be quoted.

Returns:
true if the type needs to be quoted for syntactically correct SQL.

const char * mysqlpp::mysql_type_info::sql_name   [inline]
 

Returns the name of the SQL type.

Returns the SQL name for the type.


The documentation for this class was generated from the following files:
Generated on Thu May 5 05:31:28 2005 for MySQL++ by doxygen1.2.18