16 #define BUFFER_CHUNK 1024 39 bool isEmpty() {
return buffers.empty() || (buffers.size() == 1 && buffers.front()->offset == 0); }
43 void append(
const unsigned int);
45 void append(
const unsigned long);
47 void append(
const std::string&);
48 void quote(
const std::string&);
53 std::list<Buffer *> buffers;
void append(const char)
Append a character to a buffer.
Definition: sql_buffer.cpp:57
void clear()
Clear all the buffers from the SQLBuffer and allow it to be reused.
Definition: sql_buffer.cpp:42
void quote(const std::string &)
Quote and append a string to a buffer.
Definition: sql_buffer.cpp:241
Buffer class designed to hold SQL statement that can as required but have minimal copy semantics...
Definition: sql_buffer.h:22
const char * coalesce()
Create a coalesced buffer from the buffer chain.
Definition: sql_buffer.cpp:275
SQLBuffer()
Buffer class designed to hold SQL statement that can as required but have minimal copy semantics...
Definition: sql_buffer.cpp:23
~SQLBuffer()
SQLBuffer destructor.
Definition: sql_buffer.cpp:31