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

mysqlpp::SQLString Class Reference

A specialized std::string that will convert from any valid MySQL type. More...

#include <sql_string.h>

List of all members.

Public Member Functions

 SQLString ()
 Default constructor; empty string.

 SQLString (const std::string &str)
 Create object as a copy of a C++ string.

 SQLString (const char *str)
 Create object as a copy of a C string.

 SQLString (const char *str, size_t len)
 Create object as a copy of a known-length string of characters.

 SQLString (char i)
 Create object as the string form of a char value.

 SQLString (unsigned char i)
 Create object as the string form of an unsigned char value.

 SQLString (short int i)
 Create object as the string form of a short int value.

 SQLString (unsigned short int i)
 Create object as the string form of an unsigned short int value.

 SQLString (int i)
 Create object as the string form of an int value.

 SQLString (unsigned int i)
 Create object as the string form of an unsigned int value.

 SQLString (longlong i)
 Create object as the string form of a longlong value.

 SQLString (ulonglong i)
 Create object as the string form of an unsigned longlong value.

 SQLString (float i)
 Create object as the string form of a float value.

 SQLString (double i)
 Create object as the string form of a double value.

 SQLString (const null_type &i)
 Create object representing NULL.

SQLStringoperator= (const char *str)
 Copy a C string into this object.

SQLStringoperator= (const std::string &str)
 Copy a C++ string into this object.


Public Attributes

bool is_string
 If true, the object's string data is a copy of another string. Otherwise, it's the string form of an integral type.

bool dont_escape
 If true, the string data doesn't need to be SQL-escaped when building a query.

bool processed
 If true, one of the MySQL++ manipulators has processed the string data.


Detailed Description

A specialized std::string that will convert from any valid MySQL type.


Member Data Documentation

bool mysqlpp::SQLString::processed
 

If true, one of the MySQL++ manipulators has processed the string data.

"Processing" is escaping special SQL characters, and/or adding quotes. See the documentation for manip.h for details.

This flag is used by the template query mechanism, to prevent a string from being re-escaped or re-quoted each time that query is reused. The flag is reset by operator=, to force the new parameter value to be re-processed.


The documentation for this class was generated from the following files:
Generated on Wed Jul 11 15:35:34 2007 for MySQL++ by doxygen 1.3.5