#include <tdslite/detail/token/tds_colmetadata_token.hpp>
◆ tds_colmetadata_token() [1/2]
| tdsl::tds_colmetadata_token::tds_colmetadata_token |
( |
| ) |
|
|
defaultnoexcept |
◆ tds_colmetadata_token() [2/2]
Move constructor.
- Parameters
-
| [in] | other | Object to move from |
◆ ~tds_colmetadata_token()
| tdsl::tds_colmetadata_token::~tds_colmetadata_token |
( |
| ) |
|
|
inlinenoexcept |
◆ operator=()
◆ operator bool()
| tdsl::tds_colmetadata_token::operator bool |
( |
| ) |
const |
|
inlinenoexcept |
◆ allocate_colinfo_array()
| bool tdsl::tds_colmetadata_token::allocate_colinfo_array |
( |
tdsl::uint16_t |
col_count | ) |
|
|
inlinenoexcept |
Allocate space for columns.
- Parameters
-
| [in] | col_count | Column count |
- Returns
- true if allocation successful, false otherwise.
◆ allocate_column_name_array()
| bool tdsl::tds_colmetadata_token::allocate_column_name_array |
( |
tdsl::uint16_t |
col_count | ) |
|
|
inlinenoexcept |
Allocate space for column name pointers.
- Parameters
-
| [in] | col_count | Column count |
- Returns
- true if allocation successful, false otherwise.
◆ set_column_name()
| bool tdsl::tds_colmetadata_token::set_column_name |
( |
tdsl::uint16_t |
index, |
|
|
byte_view |
name |
|
) |
| |
|
inlinenoexcept |
Set the name of the column # index to name.
This function allocates at least name.size_bytes() bytes memory and copies name into allocated memory.
- Parameters
-
| [in] | index | Column index |
| [in] | name | Name value |
- Returns
- true if set successful, false if memory allocation failed
◆ columns
◆ column_names
The documentation for this struct was generated from the following file: