fastcgi++  3.1alpha
A C++ FastCGI/Web API
Fastcgipp::SQL Namespace Reference

Contains all fastcgi++ SQL facilities. More...

Classes

class  Connection
 Handles low level communication with "the other side". More...
 
class  Parameter
 A single parameter in an SQL query. More...
 
struct  Parameter< Address >
 
class  Parameter< bool >
 
struct  Parameter< double >
 
struct  Parameter< float >
 
struct  Parameter< int16_t >
 
struct  Parameter< int32_t >
 
struct  Parameter< int64_t >
 
class  Parameter< std::chrono::time_point< std::chrono::system_clock > >
 
struct  Parameter< std::string >
 
struct  Parameter< std::vector< char > >
 
class  Parameter< std::vector< Numeric > >
 
class  Parameter< std::vector< std::string > >
 
class  Parameter< std::vector< std::wstring > >
 
class  Parameter< std::wstring >
 
class  Parameters
 A tuple of parameters to tie to a SQL query. More...
 
class  Parameters_base
 De-templated base class for Parameters. More...
 
struct  Query
 Structure to hold SQL query data. More...
 
class  Results
 Holds SQL query result sets. More...
 
class  Results<>
 Specialization of Results for zero sized result sets. More...
 
class  Results_base
 De-templated base class for SQL query result sets. More...
 

Enumerations

enum  Status {
  Status::noResult, Status::emptyQuery, Status::commandOk, Status::rowsOk,
  Status::copyOut, Status::copyIn, Status::badResponse, Status::nonfatalError,
  Status::fatalError, Status::copyBoth, Status::singleTuple
}
 Response type for SQL query results statuses. More...
 

Functions

template<typename... Types>
std::shared_ptr< Parameters< Types... > > make_Parameters (const Types &... args)
 
template<typename... Types>
std::shared_ptr< Parameters< Types... > > make_Parameters (const std::tuple< Types... > &tuple)
 
const char * statusString (const Status status)
 Returns a text description of the specified SQL query result status. More...
 

Detailed Description

Contains all fastcgi++ SQL facilities.

Enumeration Type Documentation

◆ Status

Response type for SQL query results statuses.

Enumerator
noResult 
emptyQuery 
commandOk 
rowsOk 
copyOut 
copyIn 
badResponse 
nonfatalError 
fatalError 
copyBoth 
singleTuple 

Definition at line 80 of file results.hpp.

Function Documentation

◆ make_Parameters() [1/2]

template<typename... Types>
std::shared_ptr<Parameters<Types...> > Fastcgipp::SQL::make_Parameters ( const std::tuple< Types... > &  tuple)

Definition at line 490 of file parameters.hpp.

◆ make_Parameters() [2/2]

template<typename... Types>
std::shared_ptr<Parameters<Types...> > Fastcgipp::SQL::make_Parameters ( const Types &...  args)

Definition at line 482 of file parameters.hpp.

◆ statusString()

const char * Fastcgipp::SQL::statusString ( const Status  status)

Returns a text description of the specified SQL query result status.

Definition at line 497 of file results.cpp.

References badResponse, commandOk, copyBoth, copyIn, copyOut, emptyQuery, fatalError, nonfatalError, noResult, rowsOk, and singleTuple.