Library: Data/ODBC
Package: ODBC
Header: Poco/Data/ODBC/Utility.h
Various utility functions
Member Functions: cDataType, dataSources, drivers, isError, mapInsert, sqlDataType
typedef std::map < std::string, std::string > DSNMap;
 
   
 static int cDataType(
    int sqlDataType
);
Returns C data type corresponding to supplied SQL data type.
 
 static DSNMap & dataSources(
    DSNMap & dsnMap
);
Returns DSN-description map of available ODBC data sources.
 
 static DriverMap & drivers(
    DriverMap & driverMap
);
Returns driver-attributes map of available ODBC drivers.
 
   
 static bool isError(
    SQLRETURN rc
);
Returns true if return code is error
 
   
 template < typename MapType, typename KeyArgType, typename ValueArgType > static typename MapType::iterator mapInsert(
    MapType & m,
    const KeyArgType & k,
    const ValueArgType & v
);
Utility map "insert or replace" function (from S. Meyers: Effective STL, Item 24)
 
   
 static int sqlDataType(
    int cDataType
);
Returns SQL data type corresponding to supplied C data type.
 
 static const SQLSMALLINT boolDataType;
ODBC size for bool data type.