dboo::odb::escape_string

static std::string escape_string(const std::string& text);
escape_string( text ) : String

Returns the text with all characters used by the query language escaped so that it can be passed to the query parser. Only the strings in a query needs to be escaped.

Parameters

text

String to be escaped.

Return value

The string with escaped character sequences.

Exceptions

(none)

Example