Buffer class designed to hold SQL statement that can as required but have minimal copy semantics.
More...
#include <sql_buffer.h>
|
| | SQLBuffer () |
| | Buffer class designed to hold SQL statement that can as required but have minimal copy semantics. More...
|
| |
|
| ~SQLBuffer () |
| | SQLBuffer destructor.
|
| |
|
bool | isEmpty () |
| |
| void | append (const char) |
| | Append a character to a buffer. More...
|
| |
| void | append (const char *) |
| | Append a character string to a buffer. More...
|
| |
| void | append (const int) |
| | Append an integer to a buffer. More...
|
| |
| void | append (const unsigned int) |
| | Append an unsigned integer to a buffer. More...
|
| |
| void | append (const long) |
| | Append a long to a buffer. More...
|
| |
| void | append (const unsigned long) |
| | Append an unsigned long to a buffer. More...
|
| |
| void | append (const double) |
| | Append a double to a buffer. More...
|
| |
|
void | append (const std::string &) |
| |
| void | quote (const std::string &) |
| | Quote and append a string to a buffer. More...
|
| |
| const char * | coalesce () |
| | Create a coalesced buffer from the buffer chain. More...
|
| |
|
void | clear () |
| | Clear all the buffers from the SQLBuffer and allow it to be reused.
|
| |
Buffer class designed to hold SQL statement that can as required but have minimal copy semantics.
◆ SQLBuffer()
Buffer class designed to hold SQL statement that can as required but have minimal copy semantics.
SQLBuffer constructor
◆ append() [1/7]
| void SQLBuffer::append |
( |
const char * |
data | ) |
|
Append a character string to a buffer.
@para data The string to append to the buffer
◆ append() [2/7]
| void SQLBuffer::append |
( |
const char |
data | ) |
|
Append a character to a buffer.
- Parameters
-
| data | The character to append to the buffer |
◆ append() [3/7]
| void SQLBuffer::append |
( |
const double |
value | ) |
|
Append a double to a buffer.
- Parameters
-
| value | The double value to append to the buffer |
◆ append() [4/7]
| void SQLBuffer::append |
( |
const int |
value | ) |
|
Append an integer to a buffer.
- Parameters
-
| value | The value to append to the buffer |
◆ append() [5/7]
| void SQLBuffer::append |
( |
const long |
value | ) |
|
Append a long to a buffer.
- Parameters
-
| value | The long value to append to the buffer |
◆ append() [6/7]
| void SQLBuffer::append |
( |
const unsigned int |
value | ) |
|
Append an unsigned integer to a buffer.
- Parameters
-
| value | The unsigned long value to append to the buffer |
◆ append() [7/7]
| void SQLBuffer::append |
( |
const unsigned long |
value | ) |
|
Append an unsigned long to a buffer.
- Parameters
-
| value | The value to append to the buffer |
◆ coalesce()
| const char * SQLBuffer::coalesce |
( |
| ) |
|
Create a coalesced buffer from the buffer chain.
The buffer returned has been created usign the new[] operator and must be deleted by the caller.
- Returns
- char* The SQL statement in a single buffer
◆ quote()
| void SQLBuffer::quote |
( |
const std::string & |
| ) |
|
Quote and append a string to a buffer.
- Parameters
-
| str | The string to quote and append to the buffer |
The documentation for this class was generated from the following files:
- C/plugins/storage/common/include/sql_buffer.h
- C/plugins/storage/common/sql_buffer.cpp