summaryrefslogtreecommitdiff
path: root/libsql/osqlitedriver.h
authorzecke <zecke>2002-08-27 20:17:50 (UTC)
committer zecke <zecke>2002-08-27 20:17:50 (UTC)
commit86352e32f449ecf00de254674b7dcac72bc34a14 (patch) (unidiff)
treeb5803b69ca00dceea1e2a76a5eee390f0748f27e /libsql/osqlitedriver.h
parent1398b50ffc193bc9ab69ebe198aeda847c39516e (diff)
downloadopie-86352e32f449ecf00de254674b7dcac72bc34a14.zip
opie-86352e32f449ecf00de254674b7dcac72bc34a14.tar.gz
opie-86352e32f449ecf00de254674b7dcac72bc34a14.tar.bz2
Initial check in of the light wrapper library
around normal SQL The first driver implementation is a SQLite version
Diffstat (limited to 'libsql/osqlitedriver.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libsql/osqlitedriver.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/libsql/osqlitedriver.h b/libsql/osqlitedriver.h
new file mode 100644
index 0000000..6984539
--- a/dev/null
+++ b/libsql/osqlitedriver.h
@@ -0,0 +1,34 @@
1#ifndef OSQL_LITE_DRIVER_H
2#define OSQL_LITE_DRIVER_H
3
4#include <sqlite.h>
5
6#include "osqldriver.h"
7#include "osqlerror.h"
8#include "osqlresult.h"
9
10class OSQLiteDriver : public OSQLDriver {
11 Q_OBJECT
12public:
13 OSQLiteDriver( QLibrary *lib = 0l );
14 ~OSQLiteDriver();
15 QString id()const;
16 void setUserName( const QString& );
17 void setPassword( const QString& );
18 void setUrl( const QString& url );
19 void setOptions( const QStringList& );
20 bool open();
21 bool close();
22 OSQLError lastError();
23 OSQLResult query( OSQLQuery* );
24 OSQLTable::ValueList tables()const;
25private:
26 OSQLError m_lastE;
27 OSQLResult m_result;
28 OSQLResultItem m_items;
29 int handleCallBack( int, char**, char** );
30 static int call_back( void*, int, char**, char** );
31 QString m_url;
32 sqlite *m_sqlite;
33};
34#endif