...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
(EXPERIMENTAL) Format context for incremental SQL formatting.
Defined in header <boost/mysql/format_sql.hpp>
using format_context = basic_format_context< std::string >;
Name |
Description |
---|---|
Adds an error to the current error state. |
|
Adds raw SQL to the output string (low level). |
|
Formats a value and adds it to the output string (low level). |
|
Constructor. |
|
Retrieves the current error state. |
|
Retrieves the format options. |
|
Retrieves the result of the formatting operation. |
|
Move assignment. |
The primary interface for incremental SQL formatting. Contrary to format_context_base
, this type is
aware of the output string's actual type. basic_format_context
owns an instance of OutputString
.
Format operations will append characters to such string.
Objects of this type are single-use: once the result has been retrieved using
get
, they cannot be re-used. This
is a move-only type.
Convenience type alias for basic_format_context
's
most common case.