|
tdslite latest
C++ API reference
|
#include <tdslite/detail/tdsl_command_context.hpp>
Public Member Functions | |
| operator bool () const noexcept | |
Public Attributes | |
| tdsl::uint32_t | affected_rows = {0} |
| Number of affected rows from current query. | |
| tds_done_token::status_type | status = {} |
| bool | request_too_large = {false} |
| The request does not fit into the network buffer. | |
| bool | response_error = {false} |
| The response could not be processed completely (e.g. | |
| bool | network_error = {false} |
| Sending the request or receiving the response failed (e.g. | |
| bool | response_too_large = {false} |
| The response has an item (e.g. | |
| bool | busy = {false} |
| The driver was called from one of its own callbacks (e.g. | |
|
inlineexplicitnoexcept |
| tdsl::uint32_t tdsl::detail::command_context< NetImpl >::query_result::affected_rows = {0} |
Number of affected rows from current query.
| tds_done_token::status_type tdsl::detail::command_context< NetImpl >::query_result::status = {} |
| bool tdsl::detail::command_context< NetImpl >::query_result::request_too_large = {false} |
The request does not fit into the network buffer.
Nothing is sent to the server (i.e. the query is not executed).
| bool tdsl::detail::command_context< NetImpl >::query_result::response_error = {false} |
The response could not be processed completely (e.g.
it contained malformed data or an unsupported column type, or memory allocation failed). The result set might be incomplete.
| bool tdsl::detail::command_context< NetImpl >::query_result::network_error = {false} |
Sending the request or receiving the response failed (e.g.
the connection is lost), or the driver is not logged in. The query might or might not have been executed. A response that could not be received completely closes the connection, so that its remainder is never read as the next query's response: reconnect.
| bool tdsl::detail::command_context< NetImpl >::query_result::response_too_large = {false} |
The response has an item (e.g.
a row, the column metadata or a message) larger than the network buffer. The server ran the query (running it again would end the same way). The connection is closed, so network_error is set too: reconnect.
| bool tdsl::detail::command_context< NetImpl >::query_result::busy = {false} |
The driver was called from one of its own callbacks (e.g.
the row callback), while another request is running. Nothing is sent; the running request is not affected.