/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 14:34:45 UTC
  • Revision ID: edam@waxworlds.org-20120123143445-s2v4v90nycmfm6bv
fixed up tests

Show diffs side-by-side

added added

removed removed

22
22
 
23
23
#include <sqlite3cc/connection.h>
24
24
#include <sqlite3cc/exception.h>
25
 
#include <sqlite3cc/command.h>
26
 
#include <sqlite3cc/query.h>
27
25
 
28
26
 
29
27
sqlite::connection::mutex_guard::mutex_guard(
103
101
{
104
102
        return sqlite3_busy_timeout( _handle, duration );
105
103
}
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
 
}