LiteSQL  0.3.10
sqlite3.hpp
Go to the documentation of this file.
1 /* LiteSQL
2  *
3  * The list of contributors at http://litesql.sf.net/
4  *
5  * See LICENSE for copyright information. */
6 
9 #ifndef _litesql_sqlite3_hpp
10 #define _litesql_sqlite3_hpp
11 #ifdef HAVE_LIBSQLITE3
12 #include "litesql/except.hpp"
13 #include "litesql/types.hpp"
14 #include "litesql/string.hpp"
15 #include "litesql/backend.hpp"
16 
17 #include <string>
18 struct sqlite3;
19 struct sqlite3_stmt;
20 
21 namespace litesql {
22 using namespace std;
24 class SQLite3 : public Backend {
25  sqlite3 *db;
26  mutable bool transaction;
27 protected:
28  void throwError(int status) const;
29 public:
30  class Cursor;
31  class Result;
32 
33  SQLite3(const string& database);
34  virtual ~SQLite3();
35 
36  virtual bool supportsSequences() const;
37  virtual string getInsertID() const;
38  virtual void begin() const;
39  virtual void commit() const;
40  virtual void rollback() const;
41 
42  Backend::Result* execute(const string& query) const;
43  Backend::Cursor* cursor(const string& query) const;
44 };
45 }
46 #endif
47 #endif
Definition: backend.hpp:14
contains class Record and typedef Records
contains litesql&#39;s exception classes
helpful string utils
Classes Backend, Backend::Cursor and Backend::Result.

SourceForge.net Logo