MySQL Connector/C++ 9.1.0
MySQL connector library for C and C++ applications
Public Member Functions | List of all members

Provides meta-data for a single result column. More...

Public Member Functions

string getSchemaName () const
 < TODO
 
string getTableName () const
 < TODO
 
string getTableLabel () const
 < TODO
 
string getColumnName () const
 < TODO
 
string getColumnLabel () const
 < TODO
 
Type getType () const
 < TODO
 
unsigned long getLength () const
 Get column length. More...
 
unsigned short getFractionalDigits () const
 < TODO
 
bool isNumberSigned () const
 < TODO
 
CharacterSet getCharacterSet () const
 < TODO
 
std::string getCharacterSetName () const
 TODO.
 
const CollationInfogetCollation () const
 < TODO
 
std::string getCollationName () const
 TODO.
 
bool isPadded () const
 TODO.
 

Detailed Description

Provides meta-data for a single result column.

Member Function Documentation

◆ getLength()

unsigned long getLength ( ) const
inline

Get column length.

Returns
The maximum length of data in the column in bytes, as reported by the server.
Note
Because the column length is returned as byte length, it could be confusing with the multi-byte character sets. For instance, with UTF8MB4 the length of VARCHAR(100) column is reported as 400 because each character is 4 bytes long.

The documentation for this class was generated from the following file: