/sqlite3cc

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

« back to all changes in this revision

Viewing changes to include/sqlite3cc/connection.h

  • 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:
26
26
 
27
27
#include <sqlite3.h>
28
28
#include <boost/utility.hpp>
 
29
#include <boost/shared_ptr.hpp>
29
30
#include <string>
30
31
 
31
32
 
37
38
        class basic_statement;
38
39
        class basic_transaction;
39
40
}
 
41
class command;
 
42
class query;
40
43
 
41
44
 
42
45
class connection
137
140
        int busy_timeout(
138
141
                int duration );
139
142
 
 
143
        /**
 
144
         * Create a command.
 
145
         *
 
146
         * @param sql an SQL statement in UTF-8
 
147
         */
 
148
        boost::shared_ptr< command > make_command(
 
149
                std::string sql );
 
150
 
 
151
        /**
 
152
         * Create a query.
 
153
         *
 
154
         * @param sql an SQL statement in UTF-8
 
155
         */
 
156
        boost::shared_ptr< query > make_query(
 
157
                std::string sql );
 
158
 
140
159
//______________________________________________________________________________
141
160
//                                                                implementation
142
161
private: