00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #if FX_SQLMODULE
00022
00023 #ifndef TNFXSQLDB_SQLITE3_H
00024 #define TNFXSQLDB_SQLITE3_H
00025
00026 #include "TnFXSQLDB.h"
00027
00028 namespace FX {
00029
00081 struct TnFXSQLDB_sqlite3Private;
00082 class FXSQLMODULEAPI TnFXSQLDB_sqlite3 : public TnFXSQLDB
00083 {
00084 TnFXSQLDB_sqlite3Private *p;
00085 TnFXSQLDB_sqlite3(const TnFXSQLDB_sqlite3 &);
00086 TnFXSQLDB_sqlite3 &operator=(const TnFXSQLDB_sqlite3 &);
00087 inline FXDLLLOCAL bool fxerrhsqlite3(int retcode, const char *file, const char *function, int lineno);
00088 public:
00089 static const FXString MyName;
00091 TnFXSQLDB_sqlite3(const FXString &dbpath, const FXString &user=FXString::nullStr(), const QHostAddress &host=QHOSTADDRESS_LOCALHOST, FXushort port=0);
00092 ~TnFXSQLDB_sqlite3();
00093
00094 virtual const FXString &versionInfo() const;
00095
00096 virtual void open(const FXString &password=FXString::nullStr());
00097 virtual void close();
00098 virtual TnFXSQLDBStatementRef prepare(const FXString &text);
00099
00100 void FXDLLLOCAL int_throwSQLite3Error(int errcode, const char *file, const char *function, int lineno);
00101 void FXDLLLOCAL int_waitOnSQLite3File();
00102 };
00103
00104
00105 }
00106
00107 #endif
00108 #endif