/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-01-28 12:21:03 UTC
  • Revision ID: edam@waxworlds.org-20100128122103-v3gs6hro5h7ffnhb
- further initial development
- basic support for: queries, rows (query results)
- filename, comment header and project name consistency

Show diffs side-by-side

added added

removed removed

53
53
                const std::string &filename );
54
54
 
55
55
        explicit database();
56
 
        virtual ~database();
 
56
        virtual ~database() throw( );
57
57
 
58
58
//______________________________________________________________________________
59
59
//                                                              public interface
78
78
        void close();
79
79
 
80
80
        /**
81
 
         * Execute an SQL statement. An exception is thrown on error.
 
81
         * Execute an SQL statement.
82
82
         * @param sql an SQL statement in UTF-8
 
83
         * @return an sqlite error code
83
84
         * @see sqlite3_exc()
84
85
         */
85
 
        void exec(
 
86
        int exec(
86
87
                const std::string &sql );
87
88
 
88
89
        /**
101
102
 
102
103
        friend class basic_statement;
103
104
        friend class command;
 
105
        friend class transaction;
104
106
 
105
107
        /** the database handle */
106
108
        sqlite3 *_handle;