|
fastcgi++
|
Handle retrieval and code conversion of utf-8 textual data. More...
#include <mysql.hpp>
Public Member Functions | |
| TypedConversion (int column_, MYSQL_STMT *const &statement_, void *&buffer_) | |
| void | convertResult () |
| Retrieve the result and code convert it to a Data::Wtext pointed to by external. | |
| void | convertParam () |
| Code convert the Data::Wtext pointed to by external into buffer. | |
| void * | getPointer () |
| Get a pointer to data chunk the MySQL library should write to. In this case, it won't be writing. | |
Public Attributes | |
| enum_field_types | bufferType |
| &MySQL buffer type (MYSQL_TYPE_BLOB or MYSQL_TYPE_STRING) | |
| unsigned long | length |
| Actual length of field. | |
| void * | external |
| Pointer to standard data type. | |
Protected Member Functions | |
| void | grabIt (Data::Blob &data) |
| Retrieve data from the query into the passed vector. | |
Protected Attributes | |
| void *& | buffer |
| Reference to associated MySQL bind object buffer pointer. | |
| int | column |
| Associated column/parameter number. | |
| MYSQL_STMT *const & | statement |
| Reference to associated MySQL C API statement object. | |
Private Attributes | |
| std::vector< char > | inputBuffer |
| Conversion buffer. | |
Handle retrieval and code conversion of utf-8 textual data.
| ASql::MySQL::TypedConversion< Data::Wtext >::TypedConversion | ( | int | column_, |
| MYSQL_STMT *const & | statement_, | ||
| void *& | buffer_ | ||
| ) | [inline] |
| void ASql::MySQL::TypedConversion< Data::Wtext >::convertParam | ( | ) | [virtual] |
Code convert the Data::Wtext pointed to by external into buffer.
Reimplemented from ASql::MySQL::TypedConversion< Data::Blob >.
| void ASql::MySQL::TypedConversion< Data::Wtext >::convertResult | ( | ) | [virtual] |
Retrieve the result and code convert it to a Data::Wtext pointed to by external.
Reimplemented from ASql::MySQL::TypedConversion< Data::Blob >.
| void* ASql::MySQL::TypedConversion< Data::Blob >::getPointer | ( | ) | [inline, virtual, inherited] |
Get a pointer to data chunk the MySQL library should write to. In this case, it won't be writing.
Implements ASql::Data::Conversion.
| void ASql::MySQL::TypedConversion< Data::Blob >::grabIt | ( | Data::Blob & | data | ) | [protected, inherited] |
Retrieve data from the query into the passed vector.
| [out] | data | Vector to dump the data into. Size will be adjusted. |
void*& ASql::MySQL::TypedConversion< Data::Blob >::buffer [protected, inherited] |
enum_field_types ASql::MySQL::TypedConversion< Data::Blob >::bufferType [inherited] |
int ASql::MySQL::TypedConversion< Data::Blob >::column [protected, inherited] |
void* ASql::Data::Conversion::external [inherited] |
Pointer to standard data type.
Definition at line 705 of file data.hpp.
Referenced by ASql::MySQL::TypedConversion< Data::Blob >::convertResult().
std::vector<char> ASql::MySQL::TypedConversion< Data::Wtext >::inputBuffer [private] |
unsigned long ASql::MySQL::TypedConversion< Data::Blob >::length [inherited] |
MYSQL_STMT* const& ASql::MySQL::TypedConversion< Data::Blob >::statement [protected, inherited] |
1.7.6.1