tdslite latest
C++ API reference
Loading...
Searching...
No Matches
tdsl::tds_info_token Struct Reference

#include <tdslite/detail/token/tds_info_token.hpp>

Public Member Functions

auto is_error () const noexcept -> bool
 Check whether the token is an ERROR token or not.
 
auto is_info () const noexcept -> bool
 Check whether the token is an INFO token or not.
 
auto is_fatal () const noexcept -> bool
 Check whether the error is fatal: severity 20 and above (e.g.
 

Public Attributes

tdsl::uint32_t number = {0}
 
tdsl::uint8_t state = {0}
 
tdsl::uint8_t class_ = {0}
 
tdsl::uint16_t line_number = {0}
 
tdsl::u16le_view msgtext = {}
 
tdsl::u16le_view server_name = {}
 
tdsl::u16le_view proc_name = {}
 

Member Function Documentation

◆ is_error()

auto tdsl::tds_info_token::is_error ( ) const -> bool
inlinenoexcept

Check whether the token is an ERROR token or not.

Returns
true Token is an ERROR token
false Token is an INFO token

◆ is_info()

auto tdsl::tds_info_token::is_info ( ) const -> bool
inlinenoexcept

Check whether the token is an INFO token or not.

Returns
true Token is an INFO token
false Token is an ERROR token

◆ is_fatal()

auto tdsl::tds_info_token::is_fatal ( ) const -> bool
inlinenoexcept

Check whether the error is fatal: severity 20 and above (e.g.

the session was killed). SQL Server closes the connection after it.

Member Data Documentation

◆ number

tdsl::uint32_t tdsl::tds_info_token::number = {0}

◆ state

tdsl::uint8_t tdsl::tds_info_token::state = {0}

◆ class_

tdsl::uint8_t tdsl::tds_info_token::class_ = {0}

◆ line_number

tdsl::uint16_t tdsl::tds_info_token::line_number = {0}

◆ msgtext

tdsl::u16le_view tdsl::tds_info_token::msgtext = {}

◆ server_name

tdsl::u16le_view tdsl::tds_info_token::server_name = {}

◆ proc_name

tdsl::u16le_view tdsl::tds_info_token::proc_name = {}

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