27 #if !defined(MYSQLPP_FIELD_H)    28 #define MYSQLPP_FIELD_H    61 #if MYSQL_VERSION_ID > 40000    
    64         type_(pf->
type, (pf->flags & UNSIGNED_FLAG) != 0,
    65                         (pf->flags & NOT_NULL_FLAG) == 0),
    78         length_(other.length_),
    79         max_length_(other.max_length_),
    91         bool blob_type()
 const { 
return flags_ & BLOB_FLAG; }
    94         const char* 
db()
 const { 
return db_.c_str(); }
   103         size_t length()
 const { 
return length_; }
   113         const char* 
name()
 const { 
return name_.c_str(); }
   115 #if defined(NO_DEFAULT_VALUE_FLAG)   116         bool no_default()
 const { 
return flags_ & NO_DEFAULT_VALUE_FLAG; }
   124         bool set_type()
 const { 
return flags_ & SET_FLAG; }
   127         const char* 
table()
 const { 
return table_.c_str(); }
   130         bool timestamp()
 const { 
return flags_ & TIMESTAMP_FLAG; }
   139         bool zerofill()
 const { 
return flags_ & ZEROFILL_FLAG; }
   157 #endif // !defined(MYSQLPP_FIELD_H) bool enumeration() const
Returns true if field is of an enumerated value type. 
Definition: field.h:97
bool primary_key() const
Returns true if field is part of a primary key. 
Definition: field.h:121
Definition: autoflag.h:31
bool blob_type() const
Returns true if field is of some BLOB type. 
Definition: field.h:91
Field()
Create empty object. 
Definition: field.h:50
Class to hold information about a SQL field. 
Definition: field.h:46
bool timestamp() const
Returns true if field's type is timestamp. 
Definition: field.h:130
SQL field type information. 
Definition: type_info.h:148
const mysql_type_info & type() const
Return information about the field's type. 
Definition: field.h:133
const char * db() const
Return the name of the database the field comes from. 
Definition: field.h:94
bool multiple_key() const
Returns true if field is part of a key. 
Definition: field.h:110
Declares classes that provide an interface between the SQL and C++ type systems. 
bool binary_type() const
Returns true if field is of some binary type. 
Definition: field.h:88
std::vector< Field > Fields
The list-of-Fields type. 
Definition: field.h:153
size_t max_length() const
Return the maximum number of bytes stored in this field in any of the rows in the result set we were ...
Definition: field.h:107
const char * table() const
Return the name of the table the field comes from. 
Definition: field.h:127
Field(const Field &other)
Create object as a copy of another Field. 
Definition: field.h:73
This file includes top-level definitions for use both internal to the library, and outside it...
bool auto_increment() const
Returns true if field auto-increments. 
Definition: field.h:85
bool set_type() const
Returns true if field is of some 'set' type. 
Definition: field.h:124
size_t length() const
Return the creation size of the field. 
Definition: field.h:103
Field(const MYSQL_FIELD *pf)
Create object from C API field structure. 
Definition: field.h:58
bool unique_key() const
Returns true if field is part of a unique key. 
Definition: field.h:136
bool zerofill() const
Returns true if field has the zerofill attribute. 
Definition: field.h:139
const char * name() const
Return the field's name. 
Definition: field.h:113