sqlite::query Struct Reference

query should be used to execute SQL queries An object of this class is not copyable More...

#include <query.hpp>

Inheritance diagram for sqlite::query:
Inheritance graph
[legend]
Collaboration diagram for sqlite::query:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 query (connection &con, std::string const &sql)
 constructor
virtual ~query ()
 destructor
result_type emit_result ()
 executes the sql command
result_type get_result ()
 returns the results (needs a previous emit() call)

Private Member Functions

void access_check ()
bool step ()

Friends

struct result

Detailed Description

query should be used to execute SQL queries An object of this class is not copyable

Definition at line 44 of file query.hpp.


Constructor & Destructor Documentation

sqlite::query::query ( connection con,
std::string const &  sql 
)

constructor

Parameters:
con reference to the connection which should be used
sql is the SQL query statement
virtual sqlite::query::~query (  )  [virtual]

destructor


Member Function Documentation

void sqlite::query::access_check (  )  [private]

Reimplemented from sqlite::command.

result_type sqlite::query::emit_result (  ) 

executes the sql command

Returns:
result_type which is boost::shared_ptr<result>
result_type sqlite::query::get_result (  ) 

returns the results (needs a previous emit() call)

Returns:
result_type which is boost::shared_ptr<result>
bool sqlite::query::step (  )  [private]

Reimplemented from sqlite::command.


Friends And Related Function Documentation

friend struct result [friend]

Definition at line 66 of file query.hpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends

Generated on 29 May 2014 for VSQLite++ by  doxygen 1.6.1