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(); }
224 char at(size_type i)
const throw(std::out_of_range);
234 int compare(
const std::string& other)
const;
240 int compare(size_type pos, size_type num, std::string& other)
const;
245 int compare(
const char* other)
const;
251 int compare(size_type pos, size_type num,
const char* other)
const;
254 const char* data()
const;
258 bool escape_q()
const;
266 bool is_null()
const {
return buffer_->is_null(); }
275 size_type length()
const;
280 bool quote_q()
const;
295 #if !defined(DOXYGEN_IGNORE)
317 #endif // !defined(DOXYGEN_IGNORE)
338 #endif // !defined(MYSQLPP_SQL_TYPE_ADAPTER_H)
Declares classes that implement SQL "null" semantics within C++'s type system.
size_type size() const
alias for length()
Definition: stadapter.h:276
size_t size_type
size of length values
Definition: stadapter.h:76
bool is_null() const
Return true if buffer's contents represent a SQL null.
Definition: stadapter.h:266
C++ form of SQL's TIME type.
Definition: datetime.h:347
C++ form of SQL's DATETIME type.
Definition: datetime.h:48
Declares classes to add SQL-compatible date and time types to C++'s type system.
bool is_processed() const
Returns true if the internal 'processed' flag is set.
Definition: stadapter.h:272
Class for holding an SQL TINYINT value.
Definition: tiny_int.h:55
The type of the global mysqlpp::null object.
Definition: null.h:49
void set_processed()
Turns on the internal 'is_processed_' flag.
Definition: stadapter.h:293
C++ form of SQL's DATE type.
Definition: datetime.h:225
This file includes top-level definitions for use both internal to the library, and outside it...
Declares the SQLBuffer class.
Converts many different data types to strings suitable for use in SQL queries.
Definition: stadapter.h:73
Declares class for holding a SQL TINYINT.
Class for holding data from a SQL column with the NULL attribute.
Definition: null.h:170
A std::string work-alike that can convert itself from SQL text data formats to C++ data types...
Definition: mystring.h:139