MCPcopy Create free account
hub / github.com/apache/arrow / GetAttribute

Function GetAttribute

cpp/src/arrow/flight/sql/odbc/odbc_impl/attribute_utils.h:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33template <typename T, typename O>
34inline void GetAttribute(T attribute_value, SQLPOINTER output, O output_size,
35 O* output_len_ptr) {
36 if (output) {
37 T* typed_output = reinterpret_cast<T*>(output);
38 *typed_output = attribute_value;
39 }
40
41 if (output_len_ptr) {
42 *output_len_ptr = sizeof(T);
43 }
44}
45
46template <typename O>
47inline SQLRETURN GetAttributeUTF8(std::string_view attribute_value, SQLPOINTER output,

Callers 6

GetHeaderFieldMethod · 0.85
GetFieldMethod · 0.85
GetInfoMethod · 0.85
GetConnectAttrMethod · 0.85
GetStmtAttrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected