Classes | Typedefs | Enumerations | Functions

ASql::Data Namespace Reference

Defines data types and conversion techniques standard to the fastcgipp SQL facilities. More...

Classes

struct  NullablePar
 Base class to the Nullable template class. More...
struct  Nullable
 Class for adding null capabilities to any type. Needed for SQL queries involving null values. More...
struct  NullableArray
 Class for adding null capabilities to character arrays. More...
struct  Index
 Stores on index value from a Set. More...
struct  Set
 Base data set class for communicating parameters and results with SQL queries. More...
class  SetBuilder
 Wraps a Set object around an new auto-allocated dataset of type T. More...
class  SetRefBuilder
 Wraps a Set object around a reference to a dataset of type T. More...
class  SetPtrBuilder
 Wraps a Set object around a pointer to a dataset of type T. More...
class  SetSharedPtrBuilder
 Wraps a Set object around a shared pointer to a dataset of type T. More...
class  IndySetBuilder
 Wraps a Set object around an new auto-allocated individual object of type T. More...
class  IndySetRefBuilder
 Wraps a Set object around a reference to an individual object of type T. More...
struct  SetContainer
 Base class for containers of Data::Set objects to be used for result/parameter data in SQL queries. More...
class  STLSetContainer
 Wraps a SetContainer object around a new auto-allocated STL container of type T. More...
class  STLSetRefContainer
 Wraps a SetContainer object around a reference to an STL container of type T. More...
class  STLSharedSetContainer
 Wraps a SetContainer object around a shared pointer to an STL container of type T. More...
struct  Conversion
 Handle data conversion from standard data types to internal SQL engine types. More...

Typedefs

typedef unsigned char Utiny
typedef signed char Tiny
typedef unsigned short int Ushort
typedef short int Short
typedef unsigned int Uint
typedef int Int
typedef unsigned long long int Ubigint
typedef long long int Bigint
typedef float Float
typedef double Double
typedef
boost::posix_time::time_duration 
Time
typedef boost::gregorian::date Date
typedef boost::posix_time::ptime Datetime
typedef std::vector< char > Blob
typedef std::string Text
typedef std::wstring Wtext
typedef Nullable< unsigned char > UtinyN
typedef Nullable< char > TinyN
typedef Nullable< unsigned
short int > 
UshortN
typedef Nullable< short int > ShortN
typedef Nullable< unsigned int > UintN
typedef Nullable< int > IntN
typedef Nullable< unsigned
long long int > 
UbigintN
typedef Nullable< long long int > BigintN
typedef Nullable< float > FloatN
typedef Nullable< double > DoubleN
typedef Nullable
< boost::posix_time::time_duration > 
TimeN
typedef Nullable
< boost::gregorian::date > 
DateN
typedef Nullable
< boost::posix_time::ptime > 
DatetimeN
typedef Nullable< std::vector
< char > > 
BlobN
typedef Nullable< std::string > TextN
typedef Nullable< std::wstring > WtextN
typedef std::map< int,
boost::shared_ptr< Conversion > > 
Conversions

Enumerations

enum  Type {
  U_TINY = 0, U_SHORT, U_INT, U_BIGINT,
  TINY, SHORT, INT, BIGINT,
  FLOAT, DOUBLE, TIME, DATE,
  DATETIME, BLOB, TEXT, WTEXT,
  CHAR, BINARY, BIT, U_TINY_N,
  U_SHORT_N, U_INT_N, U_BIGINT_N, TINY_N,
  SHORT_N, INT_N, BIGINT_N, FLOAT_N,
  DOUBLE_N, TIME_N, DATE_N, DATETIME_N,
  BLOB_N, TEXT_N, WTEXT_N, CHAR_N,
  BINARY_N, BIT_N, NOTHING
}
 

Defines data types supported by the fastcgi++ sql facilities.

More...

Functions

template<class charT , class Traits , class T >
std::basic_ostream< charT,
Traits > & 
operator<< (std::basic_ostream< charT, Traits > &os, const Nullable< T > &x)
 A basic, practically none-functional stream inserter for Nullable objects.

Detailed Description

Defines data types and conversion techniques standard to the fastcgipp SQL facilities.


Typedef Documentation

typedef long long int ASql::Data::Bigint

Definition at line 179 of file asql.hpp.

typedef Nullable<long long int> ASql::Data::BigintN

Definition at line 197 of file asql.hpp.

typedef std::vector<char> ASql::Data::Blob

Definition at line 185 of file asql.hpp.

typedef Nullable<std::vector<char> > ASql::Data::BlobN

Definition at line 203 of file asql.hpp.

typedef std::map<int, boost::shared_ptr<Conversion> > ASql::Data::Conversions

Definition at line 690 of file asql.hpp.

typedef boost::gregorian::date ASql::Data::Date

Definition at line 183 of file asql.hpp.

typedef Nullable<boost::gregorian::date> ASql::Data::DateN

Definition at line 201 of file asql.hpp.

typedef boost::posix_time::ptime ASql::Data::Datetime

Definition at line 184 of file asql.hpp.

typedef Nullable<boost::posix_time::ptime> ASql::Data::DatetimeN

Definition at line 202 of file asql.hpp.

typedef double ASql::Data::Double

Definition at line 181 of file asql.hpp.

typedef Nullable<double> ASql::Data::DoubleN

Definition at line 199 of file asql.hpp.

typedef float ASql::Data::Float

Definition at line 180 of file asql.hpp.

typedef Nullable<float> ASql::Data::FloatN

Definition at line 198 of file asql.hpp.

typedef int ASql::Data::Int

Definition at line 177 of file asql.hpp.

typedef Nullable<int> ASql::Data::IntN

Definition at line 195 of file asql.hpp.

typedef short int ASql::Data::Short

Definition at line 175 of file asql.hpp.

typedef Nullable<short int> ASql::Data::ShortN

Definition at line 193 of file asql.hpp.

typedef std::string ASql::Data::Text

Definition at line 186 of file asql.hpp.

typedef Nullable<std::string> ASql::Data::TextN

Definition at line 204 of file asql.hpp.

typedef boost::posix_time::time_duration ASql::Data::Time

Definition at line 182 of file asql.hpp.

typedef Nullable<boost::posix_time::time_duration> ASql::Data::TimeN

Definition at line 200 of file asql.hpp.

typedef signed char ASql::Data::Tiny

Definition at line 173 of file asql.hpp.

typedef Nullable<char> ASql::Data::TinyN

Definition at line 191 of file asql.hpp.

typedef unsigned long long int ASql::Data::Ubigint

Definition at line 178 of file asql.hpp.

typedef Nullable<unsigned long long int> ASql::Data::UbigintN

Definition at line 196 of file asql.hpp.

typedef unsigned int ASql::Data::Uint

Definition at line 176 of file asql.hpp.

typedef Nullable<unsigned int> ASql::Data::UintN

Definition at line 194 of file asql.hpp.

typedef unsigned short int ASql::Data::Ushort

Definition at line 174 of file asql.hpp.

typedef Nullable<unsigned short int> ASql::Data::UshortN

Definition at line 192 of file asql.hpp.

typedef unsigned char ASql::Data::Utiny

Definition at line 172 of file asql.hpp.

typedef Nullable<unsigned char> ASql::Data::UtinyN

Definition at line 190 of file asql.hpp.

typedef std::wstring ASql::Data::Wtext

Definition at line 187 of file asql.hpp.

typedef Nullable<std::wstring> ASql::Data::WtextN

Definition at line 205 of file asql.hpp.


Enumeration Type Documentation

Defines data types supported by the fastcgi++ sql facilities.

This enumeration provides runtime type identification capabilities to classes derived from the Set class. All types starting with U_ mean unsigned and all types ending will _N means they can store null values via the Nullable class.

Enumerator:
U_TINY 
U_SHORT 
U_INT 
U_BIGINT 
TINY 
SHORT 
INT 
BIGINT 
FLOAT 
DOUBLE 
TIME 
DATE 
DATETIME 
BLOB 
TEXT 
WTEXT 
CHAR 
BINARY 
BIT 
U_TINY_N 
U_SHORT_N 
U_INT_N 
U_BIGINT_N 
TINY_N 
SHORT_N 
INT_N 
BIGINT_N 
FLOAT_N 
DOUBLE_N 
TIME_N 
DATE_N 
DATETIME_N 
BLOB_N 
TEXT_N 
WTEXT_N 
CHAR_N 
BINARY_N 
BIT_N 
NOTHING 

Definition at line 73 of file asql.hpp.


Function Documentation

template<class charT , class Traits , class T >
std::basic_ostream<charT, Traits>& ASql::Data::operator<< ( std::basic_ostream< charT, Traits > &  os,
const Nullable< T > &  x 
) [inline]

A basic, practically none-functional stream inserter for Nullable objects.

Definition at line 162 of file asql.hpp.

References ASql::Data::Nullable< T >::object.