/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc

« back to all changes in this revision

Viewing changes to src/connection.cc

  • Committer: edam
  • Date: 2012-01-23 17:12:43 UTC
  • Revision ID: edam@waxworlds.org-20120123171243-bgqedav41y2x8rlw
added command and query factory methods to connection

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include <sqlite3cc/connection.h>
24
24
#include <sqlite3cc/exception.h>
 
25
#include <sqlite3cc/command.h>
 
26
#include <sqlite3cc/query.h>
25
27
 
26
28
 
27
29
sqlite::connection::mutex_guard::mutex_guard(
101
103
{
102
104
        return sqlite3_busy_timeout( _handle, duration );
103
105
}
 
106
 
 
107
 
 
108
boost::shared_ptr< sqlite::command > sqlite::connection::make_command(
 
109
        std::string sql )
 
110
{
 
111
        return boost::shared_ptr< sqlite::command >(
 
112
                new sqlite::command( *this, sql ) );
 
113
}
 
114
 
 
115
 
 
116
boost::shared_ptr< sqlite::query > sqlite::connection::make_query(
 
117
        std::string sql )
 
118
{
 
119
        return boost::shared_ptr< sqlite::query >(
 
120
                new sqlite::query( *this, sql ) );
 
121
}