nanodbc
A small C++ wrapper for the native C ODBC API
Loading...
Searching...
No Matches
nanodbc::detail Namespace Reference

Implementation details, not part of the interface. More...

Classes

struct  bind_as_optional_string
 
struct  bind_as_optional_value
 
struct  bind_as_string
 
struct  bind_as_value
 
struct  bind_kind
 
struct  field_type
 The type an accessor yields for a row, stripped of reference and const. More...
 
struct  is_bindable_string
 
struct  is_bindable_string< std::string >
 
struct  is_bindable_string< wide_string >
 
struct  is_optional
 

Functions

template<class Row , class Member , class Class >
Member const & read_field (Row const &row, Member Class::*field)
 Reads a member through a pointer to it.
 
template<class Row , class Accessor >
auto read_field (Row const &row, Accessor const &accessor) -> decltype(accessor(row))
 Reads a value by calling something with the row.
 
template<class Rows , class Accessor >
void bind_column (statement &stmt, short param_index, Rows const &rows, Accessor const &accessor, bind_as_value)
 
template<class Rows , class Accessor >
void bind_column (statement &stmt, short param_index, Rows const &rows, Accessor const &accessor, bind_as_string)
 
template<class Rows , class Accessor >
void bind_one (statement &stmt, short param_index, Rows const &rows, Accessor const &accessor)
 

Detailed Description

Implementation details, not part of the interface.