nanodbc
A small C++ wrapper for the native C ODBC API
Loading...
Searching...
No Matches
Utilities

Additional nanodbc utility classes and functions. More...

Classes

struct  nanodbc::batch_ops
 A type capturing parameter array length as well as number of rows in a rowset of a result. More...
 
struct  nanodbc::date
 A type for representing date data. More...
 
struct  nanodbc::time
 A type for representing time data. More...
 
struct  nanodbc::timestamp
 A type for representing timestamp data. More...
 
struct  nanodbc::timestampoffset
 A type for representing timestamp+offset data. More...
 
class  nanodbc::attribute
 A class representing a connection or a statement attribute. More...
 

Typedefs

template<typename T >
using nanodbc::is_string = std::integral_constant< bool, std::is_same< typename std::decay< T >::type, std::string >::value||std::is_same< typename std::decay< T >::type, wide_string >::value >
 A type trait for testing if a type is a std::basic_string compatible with the current nanodbc configuration.
 
template<typename T >
using nanodbc::is_character = std::integral_constant< bool, std::is_same< typename std::decay< T >::type, std::string::value_type >::value||std::is_same< typename std::decay< T >::type, wide_char_t >::value >
 A type trait for testing if a type is a character compatible with the current nanodbc configuration.
 
template<typename T >
using nanodbc::enable_if_string = typename std::enable_if< is_string< T >::value >::type
 Enables an overload only for the string types nanodbc binds as strings.
 
template<typename T >
using nanodbc::enable_if_character = typename std::enable_if< is_character< T >::value >::type
 Enables an overload only for the character types nanodbc binds as strings.
 

Detailed Description

Additional nanodbc utility classes and functions.