Classes | Namespaces | Typedefs | Enumerations | Functions

asql.hpp File Reference

Declares the ASql namespace. More...

#include <vector>
#include <queue>
#include <cstring>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/shared_array.hpp>
#include <boost/scoped_array.hpp>
#include <boost/function.hpp>
#include <boost/bind.hpp>
#include <boost/thread.hpp>

Go to the source code of this file.

Classes

struct  ASql::Error
 SQL Error. More...
struct  ASql::Data::NullablePar
 Base class to the Nullable template class. More...
struct  ASql::Data::Nullable< T >
 Class for adding null capabilities to any type. Needed for SQL queries involving null values. More...
struct  ASql::Data::NullableArray< T, size >
 Class for adding null capabilities to character arrays. More...
struct  ASql::Data::Index
 Stores on index value from a Set. More...
struct  ASql::Data::Set
 Base data set class for communicating parameters and results with SQL queries. More...
class  ASql::Data::SetBuilder< T >
 Wraps a Set object around an new auto-allocated dataset of type T. More...
class  ASql::Data::SetRefBuilder< T >
 Wraps a Set object around a reference to a dataset of type T. More...
class  ASql::Data::SetPtrBuilder< T >
 Wraps a Set object around a pointer to a dataset of type T. More...
class  ASql::Data::SetSharedPtrBuilder< T >
 Wraps a Set object around a shared pointer to a dataset of type T. More...
class  ASql::Data::IndySetBuilder< T >
 Wraps a Set object around an new auto-allocated individual object of type T. More...
class  ASql::Data::IndySetRefBuilder< T >
 Wraps a Set object around a reference to an individual object of type T. More...
struct  ASql::Data::SetContainer
 Base class for containers of Data::Set objects to be used for result/parameter data in SQL queries. More...
class  ASql::Data::STLSetContainer< T >
 Wraps a SetContainer object around a new auto-allocated STL container of type T. More...
class  ASql::Data::STLSetRefContainer< T >
 Wraps a SetContainer object around a reference to an STL container of type T. More...
class  ASql::Data::STLSharedSetContainer< T >
 Wraps a SetContainer object around a shared pointer to an STL container of type T. More...
struct  ASql::Data::Conversion
 Handle data conversion from standard data types to internal SQL engine types. More...
class  ASql::Query
 Class for storing query data to be passed and retrieved from statements. More...
struct  ASql::Query::SharedData
 Sub-structure to store shared data for the query. More...
class  ASql::Transaction< T >
 Build a series of queries into a transaction. More...
struct  ASql::Transaction< T >::Item
 Ties query objects to their statements. More...
class  ASql::Connection
 SQL Connection. More...
class  ASql::ConnectionPar< T >
 Defines some functions and data types shared between ASql engines. More...
struct  ASql::ConnectionPar< T >::QuerySet
class  ASql::ConnectionPar< T >::Queries
 Thread safe queue of queries. More...
class  ASql::ConnectionPar< T >::SetCanceler
 Locks the mutex on a statement and set's the canceller to the queries canceller. More...
class  ASql::Statement
 SQL Statement. More...

Namespaces

namespace  ASql
 

Defines classes and functions relating to SQL querying.


namespace  ASql::Data
 

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


Typedefs

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

Enumerations

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

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

More...

Functions

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)
 A basic, practically none-functional stream inserter for Nullable objects.

Detailed Description

Declares the ASql namespace.

Definition in file asql.hpp.