28 #if !defined(MYSQLPP_SQL_TYPE_ADAPTER_H)
29 #define MYSQLPP_SQL_TYPE_ADAPTER_H
43 #if !defined(DOXYGEN_IGNORE)
44 class MYSQLPP_EXPORT String;
179 operator const char*()
const {
return data(); }
225 #if !defined(DOXYGEN_IGNORE) && __cplusplus >= 201103L
227 char at(size_type i)
const noexcept(
false);
229 char at(size_type i)
const throw(std::out_of_range);
240 int compare(
const std::string& other)
const;
246 int compare(size_type pos, size_type num, std::string& other)
const;
251 int compare(
const char* other)
const;
257 int compare(size_type pos, size_type num,
const char* other)
const;
260 const char* data()
const;
264 bool escape_q()
const;
272 bool is_null()
const {
return buffer_->is_null(); }
281 size_type length()
const;
286 bool quote_q()
const;
301 #if !defined(DOXYGEN_IGNORE)
C++ form of SQL's DATETIME type.
Definition: datetime.h:49
C++ form of SQL's DATE type.
Definition: datetime.h:226
Class for holding data from a SQL column with the NULL attribute.
Definition: null.h:171
Converts many different data types to strings suitable for use in SQL queries.
Definition: stadapter.h:74
size_type size() const
alias for length()
Definition: stadapter.h:282
void set_processed()
Turns on the internal 'is_processed_' flag.
Definition: stadapter.h:299
bool is_null() const
Return true if buffer's contents represent a SQL null.
Definition: stadapter.h:272
bool is_processed() const
Returns true if the internal 'processed' flag is set.
Definition: stadapter.h:278
size_t size_type
size of length values
Definition: stadapter.h:76
A std::string work-alike that can convert itself from SQL text data formats to C++ data types.
Definition: mystring.h:140
C++ form of SQL's TIME type.
Definition: datetime.h:348
The type of the global mysqlpp::null object.
Definition: null.h:50
Class for holding an SQL TINYINT value.
Definition: tiny_int.h:56
This file includes top-level definitions for use both internal to the library, and outside it....
Declares classes to add SQL-compatible date and time types to C++'s type system.
Declares classes that implement SQL "null" semantics within C++'s type system.
Declares the SQLBuffer class.
Declares class for holding a SQL TINYINT.