/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-23 12:57:07 UTC
  • Revision ID: edam@waxworlds.org-20100723125707-qu9jk9vvg2uewx7t
- cleaned up test-main
- fixed comment type
- made sqlite::exec() throw instead of returning sqlite error code

Show diffs side-by-side

added added

removed removed

78
78
        void close();
79
79
 
80
80
        /**
81
 
         * Execute an SQL statement.
 
81
         * Execute an SQL statement. An exception is thrown on error.
82
82
         * @param sql an SQL statement in UTF-8
83
 
         * @return an sqlite error code
84
83
         * @see sqlite3_exc()
85
84
         */
86
 
        int exec(
 
85
        void exec(
87
86
                const std::string &sql );
88
87
 
89
88
        /**