/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-02-08 22:08:57 UTC
  • Revision ID: edam@waxworlds.org-20100208220857-5up6fi4y6jh5bz4k
- removed "OK" from test-main when test is successful
- aranged for test/test-main to buld properly and be called from "make check"
- added include/Makefile.am to arrange for installation of library headers
- added project website to configure.ac
- added library interface configuration variable to configure.ac

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