tdslite latest
C++ API reference
Loading...
Searching...
No Matches
tdsl Namespace Reference

Namespaces

namespace  detail
 
namespace  net
 

Classes

struct  expected
 Barebones* expected implementation (*not exactly standard compliant) More...
 
struct  mfctx
 
struct  placement_new_tag
 
struct  span
 Span of T. More...
 
struct  sql_money
 money sql type More...
 
struct  string_view
 String view. More...
 
struct  tds_allocator
 
struct  tds_colmetadata_token
 
struct  tds_column_info
 
struct  tds_done_token
 TDS DONE token (0xFD) More...
 
struct  tds_info_token
 
struct  tdsl_field
 Non-owning view of a row field. More...
 
struct  tdsl_row
 A type that represents a row in a result set. More...
 
struct  u16le_view
 Non-owning view of a UTF-16LE string stored in a byte buffer, such as a string in a server response. More...
 
struct  wstring_view
 Wide-character (16 bit) string view. More...
 

Typedefs

template<typename ClientTypeT >
using arduino_driver = driver< net::tdsl_netimpl_arduino< ClientTypeT > >
 alias type for tdslite driver with arduino ethernet client implementation for networking.
 
template<typename NetImpl >
using driver = detail::tdsl_driver< NetImpl >
 
using lang_code = detail::e_ms_lang_code_id
 
using data_type = detail::e_tds_data_type
 
using rpc_mode = detail::e_rpc_mode
 
using stored_proc = detail::e_proc_id
 
using malloc_fn_type = void *(*)(unsigned long)
 
using free_fn_type = void(*)(void *ptr)
 
using char_view = tdsl::span< const char >
 
using u16char_view = tdsl::span< const char16_t >
 
using u32char_view = tdsl::span< const char32_t >
 
using byte_view = tdsl::span< const tdsl::uint8_t >
 
using char_span = tdsl::span< char >
 
using u16char_span = tdsl::span< char16_t >
 
using u32char_span = tdsl::span< char32_t >
 
using byte_span = tdsl::span< tdsl::uint8_t >
 
using esp_tls_driver = driver< net::tdsl_netimpl_esp_tls >
 alias type for tdslite driver with the ESP-IDF TLS (esp-tls) implementation for networking.
 

Functions

auto tdslite_malloc_free (malloc_fn_type mfn=nullptr, free_fn_type ffn=nullptr) noexcept -> const mfctx &
 Set-get malloc & free functions for tdslite.
 
auto tdslite_malloc (unsigned long n_bytes) noexcept -> void *
 
auto tdslite_free (void *p, unsigned long n_bytes) noexcept -> void
 
template<typename T >
detail::unexpected_wrapper< T > unexpected (T error_value)
 

Typedef Documentation

◆ arduino_driver

template<typename ClientTypeT >
using tdsl::arduino_driver = typedef driver<net::tdsl_netimpl_arduino<ClientTypeT> >

alias type for tdslite driver with arduino ethernet client implementation for networking.

The ethernet MUST be initialized with Ethernet.begin() before interacting with instances of this type.

◆ driver

template<typename NetImpl >
using tdsl::driver = typedef detail::tdsl_driver<NetImpl>

◆ lang_code

using tdsl::lang_code = typedef detail::e_ms_lang_code_id

◆ data_type

using tdsl::data_type = typedef detail::e_tds_data_type

◆ rpc_mode

◆ stored_proc

◆ malloc_fn_type

using tdsl::malloc_fn_type = typedef void * (*) (unsigned long)

◆ free_fn_type

using tdsl::free_fn_type = typedef void (*)(void * ptr)

◆ char_view

using tdsl::char_view = typedef tdsl::span<const char>

◆ u16char_view

using tdsl::u16char_view = typedef tdsl::span<const char16_t>

◆ u32char_view

using tdsl::u32char_view = typedef tdsl::span<const char32_t>

◆ byte_view

using tdsl::byte_view = typedef tdsl::span<const tdsl::uint8_t>

◆ char_span

using tdsl::char_span = typedef tdsl::span<char>

◆ u16char_span

using tdsl::u16char_span = typedef tdsl::span<char16_t>

◆ u32char_span

using tdsl::u32char_span = typedef tdsl::span<char32_t>

◆ byte_span

using tdsl::byte_span = typedef tdsl::span<tdsl::uint8_t>

◆ esp_tls_driver

alias type for tdslite driver with the ESP-IDF TLS (esp-tls) implementation for networking.

Function Documentation

◆ tdslite_malloc_free()

auto tdsl::tdslite_malloc_free ( malloc_fn_type  mfn = nullptr,
free_fn_type  ffn = nullptr 
) -> const mfctx &
inlinenoexcept

Set-get malloc & free functions for tdslite.

Function is a setter when mfn and ffn are non-null.

Parameters
mfnMalloc function (default nullptr)
ffnFree function (default nullptr)
Returns
mfctx Object containing current malloc-free functions

◆ tdslite_malloc()

auto tdsl::tdslite_malloc ( unsigned long  n_bytes) -> void *
inlinenoexcept

◆ tdslite_free()

auto tdsl::tdslite_free ( void *  p,
unsigned long  n_bytes 
) -> void
inlinenoexcept

◆ unexpected()

template<typename T >
detail::unexpected_wrapper< T > tdsl::unexpected ( T  error_value)