tdslite latest
C++ API reference
Loading...
Searching...
No Matches
tdsl::detail::command_context< NetImpl >::query_result Struct 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.
 

Member Function Documentation

◆ operator bool()

template<typename NetImpl >
tdsl::detail::command_context< NetImpl >::query_result::operator bool ( ) const
inlineexplicitnoexcept

Member Data Documentation

◆ affected_rows

template<typename NetImpl >
tdsl::uint32_t tdsl::detail::command_context< NetImpl >::query_result::affected_rows = {0}

Number of affected rows from current query.

◆ status

template<typename NetImpl >
tds_done_token::status_type tdsl::detail::command_context< NetImpl >::query_result::status = {}

◆ request_too_large

template<typename NetImpl >
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).

◆ response_error

template<typename NetImpl >
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.

◆ network_error

template<typename NetImpl >
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.

◆ response_too_large

template<typename NetImpl >
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.

◆ busy

template<typename NetImpl >
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.


The documentation for this struct was generated from the following file: