/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/database.h

  • Committer: edam
  • Date: 2010-07-27 15:46:42 UTC
  • Revision ID: edam@waxworlds.org-20100727154642-1uxrjkpxhp7xl6hq
- moved null_t, exec_t and set_index_t to detail namespace so only their extern instantiations are in the main namespace
- added immediate transation

Show diffs side-by-side

added added

removed removed

26
26
 
27
27
#include <sqlite3.h>
28
28
#include <boost/utility.hpp>
 
29
#include <string>
29
30
 
30
31
 
31
32
namespace sqlite
53
54
                const std::string &filename );
54
55
 
55
56
        explicit database();
56
 
        virtual ~database() throw( );
 
57
        virtual ~database();
57
58
 
58
59
//______________________________________________________________________________
59
60
//                                                              public interface
78
79
        void close();
79
80
 
80
81
        /**
81
 
         * Execute an SQL statement.
 
82
         * Execute an SQL statement. An exception is thrown on error.
82
83
         * @param sql an SQL statement in UTF-8
83
 
         * @return an sqlite error code
84
84
         * @see sqlite3_exc()
85
85
         */
86
 
        int exec(
 
86
        void exec(
87
87
                const std::string &sql );
88
88
 
89
89
        /**