Savarese Software Research Corporation
ssrc::wispers::database::PreparedStatement Class Reference

#include <Database.h>

List of all members.

Public Types

enum  BindPolicy { BindTransient, BindStatic }

Public Member Functions

bool expired ()
unsigned int count_parameters ()
PreparedStatementbind (const unsigned int index, const double value)
PreparedStatementbind (const unsigned int index, const int value)
PreparedStatementbind (const unsigned int index, const unsigned int value)
PreparedStatementbind (const unsigned int index, const std::int16_t value)
PreparedStatementbind (const unsigned int index, const std::uint16_t value)
PreparedStatementbind (const unsigned int index, const bool value)
PreparedStatementbind (const unsigned int index, const std::int64_t value)
PreparedStatementbind (const unsigned int index, const std::uint64_t value)
PreparedStatementbind (const unsigned int index, const long value)
PreparedStatementbind (const unsigned int index, const unsigned long value)
PreparedStatementbind (const unsigned int index, const char *const value, const unsigned int bytes, const BindPolicy policy=BindTransient)
PreparedStatementbind (const unsigned int index, const char *const value, const BindPolicy policy=BindTransient)
PreparedStatementbind (const unsigned int index, const string &value, const BindPolicy policy=BindTransient)
PreparedStatementbind (const unsigned int index, const void *value, const unsigned int bytes, const BindPolicy policy=BindTransient)
PreparedStatementbind (const unsigned int index, const blob_type &blob, const BindPolicy policy=BindTransient)
template<typename T >
PreparedStatementbind (const unsigned int index, const T &t)
PreparedStatementunbind (const unsigned int index)
PreparedStatementunbind ()
void reset ()
QueryResult execute ()
template<typename functor >
unsigned int for_each (const functor &apply)
unsigned int count_columns ()
string column_name (const unsigned int index)
template<typename... P>
PreparedStatementbindp (const P &...p)
template<typename... P>
QueryResult execute (const P &...p)
template<typename... P, typename functor >
unsigned int for_each (const functor &apply, const P &...p)

Friends

class Database

Detailed Description

Definition at line 47 of file Database.h.


Member Enumeration Documentation

Enumerator:
BindTransient 
BindStatic 

Definition at line 62 of file Database.h.


Member Function Documentation

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const double  value 
) [inline]

Definition at line 72 of file Database.h.

References value().

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const int  value 
) [inline]

Definition at line 81 of file Database.h.

References value().

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const unsigned int  value 
) [inline]

Definition at line 89 of file Database.h.

References value().

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const std::int16_t  value 
) [inline]

Definition at line 95 of file Database.h.

References value().

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const std::uint16_t  value 
) [inline]

Definition at line 101 of file Database.h.

References value().

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const bool  value 
) [inline]

Definition at line 107 of file Database.h.

References value().

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const std::int64_t  value 
) [inline]

Definition at line 115 of file Database.h.

References value().

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const std::uint64_t  value 
) [inline]

Definition at line 124 of file Database.h.

References value().

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const long  value 
) [inline]

Definition at line 131 of file Database.h.

References value().

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const unsigned long  value 
) [inline]

Definition at line 140 of file Database.h.

References value().

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const char *const  value,
const unsigned int  bytes,
const BindPolicy  policy = BindTransient 
) [inline]

Definition at line 147 of file Database.h.

References value().

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const char *const  value,
const BindPolicy  policy = BindTransient 
) [inline]

Definition at line 160 of file Database.h.

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const string value,
const BindPolicy  policy = BindTransient 
) [inline]

Definition at line 167 of file Database.h.

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const void *  value,
const unsigned int  bytes,
const BindPolicy  policy = BindTransient 
) [inline]

Definition at line 174 of file Database.h.

References value().

PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const blob_type blob,
const BindPolicy  policy = BindTransient 
) [inline]

Definition at line 186 of file Database.h.

template<typename T >
PreparedStatement& ssrc::wispers::database::PreparedStatement::bind ( const unsigned int  index,
const T &  t 
) [inline]

Definition at line 202 of file Database.h.

template<typename... P>
PreparedStatement& ssrc::wispers::database::PreparedStatement::bindp ( const P &...  p) [inline]

Definition at line 289 of file Database.h.

string ssrc::wispers::database::PreparedStatement::column_name ( const unsigned int  index) [inline]

Definition at line 258 of file Database.h.

Definition at line 254 of file Database.h.

Definition at line 68 of file Database.h.

template<typename... P>
QueryResult ssrc::wispers::database::PreparedStatement::execute ( const P &...  p) [inline]

Definition at line 294 of file Database.h.

Definition at line 64 of file Database.h.

template<typename functor >
unsigned int ssrc::wispers::database::PreparedStatement::for_each ( const functor &  apply) [inline]

Definition at line 244 of file Database.h.

References ssrc::wispers::database::QueryResult::result_set.

template<typename... P, typename functor >
unsigned int ssrc::wispers::database::PreparedStatement::for_each ( const functor &  apply,
const P &...  p 
) [inline]

Definition at line 299 of file Database.h.

Definition at line 222 of file Database.h.

Definition at line 208 of file Database.h.


Friends And Related Function Documentation

friend class Database [friend]

Definition at line 48 of file Database.h.


The documentation for this class was generated from the following file:

Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.