fastcgi++
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. More...
struct  NullableArray
 Class for adding null capabilities to character arrays. More...
struct  Blob
 Derive from this to create your own Blob types. More...
struct  VectorBlob
struct  Index
 Stores on index value from a Set. More...
struct  Set
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...
class  IndySetPtrBuilder
 Wraps a Set object around a pointer 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  IndySTLSetContainer
 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::string Text
typedef std::wstring Wtext
typedef bool Boolean
typedef Nullable< UtinyUtinyN
typedef Nullable< TinyTinyN
typedef Nullable< UshortUshortN
typedef Nullable< ShortShortN
typedef Nullable< UintUintN
typedef Nullable< IntIntN
typedef Nullable< UbigintUbigintN
typedef Nullable< BigintBigintN
typedef Nullable< FloatFloatN
typedef Nullable< DoubleDoubleN
typedef Nullable< TimeTimeN
typedef Nullable< DateDateN
typedef Nullable< DatetimeDatetimeN
typedef Nullable< TextTextN
typedef Nullable< WtextWtextN
typedef Nullable< BooleanBooleanN
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 134 of file data.hpp.

Definition at line 171 of file data.hpp.

typedef bool ASql::Data::Boolean

Definition at line 142 of file data.hpp.

Definition at line 179 of file data.hpp.

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

Definition at line 708 of file data.hpp.

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

Definition at line 138 of file data.hpp.

Definition at line 175 of file data.hpp.

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

Definition at line 139 of file data.hpp.

Definition at line 176 of file data.hpp.

typedef double ASql::Data::Double

Definition at line 136 of file data.hpp.

Definition at line 173 of file data.hpp.

typedef float ASql::Data::Float

Definition at line 135 of file data.hpp.

Definition at line 172 of file data.hpp.

typedef int ASql::Data::Int

Definition at line 132 of file data.hpp.

Definition at line 169 of file data.hpp.

typedef short int ASql::Data::Short

Definition at line 130 of file data.hpp.

Definition at line 167 of file data.hpp.

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

Definition at line 140 of file data.hpp.

Definition at line 177 of file data.hpp.

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

Definition at line 137 of file data.hpp.

Definition at line 174 of file data.hpp.

typedef signed char ASql::Data::Tiny

Definition at line 128 of file data.hpp.

Definition at line 165 of file data.hpp.

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

Definition at line 133 of file data.hpp.

Definition at line 170 of file data.hpp.

typedef unsigned int ASql::Data::Uint

Definition at line 131 of file data.hpp.

Definition at line 168 of file data.hpp.

typedef unsigned short int ASql::Data::Ushort

Definition at line 129 of file data.hpp.

Definition at line 166 of file data.hpp.

typedef unsigned char ASql::Data::Utiny

Definition at line 127 of file data.hpp.

Definition at line 164 of file data.hpp.

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

Definition at line 141 of file data.hpp.

Definition at line 178 of file data.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 36 of file data.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 117 of file data.hpp.

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