fastcgi++
|
Handle retrieval of variable length data chunks. More...
#include <mysql.hpp>
Public Member Functions | |
virtual void | convertResult () |
Retrieve the data chunk into the container pointer to by external. | |
virtual void | convertParam () |
Set the buffer to the address of the start of the container pointed to be external. | |
void * | getPointer () |
Get a pointer to data chunk the MySQL library should write to. In this case, it won't be writing. | |
TypedConversion (const int &column_, MYSQL_STMT *const &statement_, const enum_field_types &bufferType_, void *&buffer_) |
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 (T &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. |
Handle retrieval of variable length data chunks.
Although no conversion is necessary for these data chunks, we wait to retrieve the data until we actually know how many bytes of it there is. This "conversion" handles that.
|
inline |
[in] | column_ | Associated column/parameter number. |
[in] | statement_ | Reference to MySQL C API statement object. |
[in] | bufferType_ | &MySQL buffer type (MYSQL_TYPE_BLOB or MYSQL_TYPE_STRING). |
[out] | buffer_ | Reference to associated MySQL bind object buffer pointer. |
|
virtual |
Set the buffer to the address of the start of the container pointed to be external.
Implements ASql::Data::Conversion.
Reimplemented in ASql::MySQL::TypedConversion< Data::Wtext >.
|
inlinevirtual |
Retrieve the data chunk into the container pointer to by external.
Implements ASql::Data::Conversion.
Reimplemented in ASql::MySQL::TypedConversion< Data::Wtext >.
|
inlinevirtual |
Get a pointer to data chunk the MySQL library should write to. In this case, it won't be writing.
Implements ASql::Data::Conversion.
|
protected |
Retrieve data from the query into the passed vector.
[out] | data | Vector to dump the data into. Size will be adjusted. |
Definition at line 499 of file mysql.cpp.
Referenced by ASql::MySQL::TypedConversion< Data::Blob >::convertResult().
|
protected |
Reference to associated MySQL bind object buffer pointer.
Definition at line 410 of file mysql.hpp.
Referenced by ASql::MySQL::Statement::buildBindings().
enum_field_types ASql::MySQL::TypedConversion< T >::bufferType |
&MySQL buffer type (MYSQL_TYPE_BLOB or MYSQL_TYPE_STRING)
Definition at line 384 of file mysql.hpp.
Referenced by ASql::MySQL::Statement::buildBindings().
|
protected |
|
inherited |
Pointer to standard data type.
Definition at line 705 of file data.hpp.
Referenced by ASql::MySQL::TypedConversion< Data::Blob >::convertResult().
unsigned long ASql::MySQL::TypedConversion< T >::length |
Actual length of field.
Definition at line 387 of file mysql.hpp.
Referenced by ASql::MySQL::Statement::buildBindings().
|
protected |