1 #ifndef __EIENDB_SQLITE_HPP__ 2 #define __EIENDB_SQLITE_HPP__ 30 virtual bool connect()
override;
31 virtual bool close()
override;
32 virtual void alive()
override;
33 virtual bool setLinkCharset(
winux::String const & charset )
override;
34 virtual bool selectDb(
winux::String const & database )
override;
35 virtual bool createDb(
winux::String const & database )
override;
36 virtual bool dropDb(
winux::String const & database )
override;
37 virtual size_t affectedRows()
override;
38 virtual size_t insertId()
override;
39 virtual int errNo()
override;
55 virtual operator bool()
const override {
return _db != NULL; }
57 operator sqlite3 * ()
const {
return _db; }
84 virtual bool bind(
size_t paramIndex,
winux::Mixed const & val )
override;
87 operator sqlite3_stmt * ()
const {
return _stmt; }
97 std::vector< std::pair< size_t, winux::Mixed > > _bindingParams;
108 virtual bool free()
override;
110 virtual bool fetchRow(
winux::Mixed * fields,
int type = 0 )
override;
113 virtual winux::String fieldName(
size_t fieldIndex )
override;
114 virtual size_t fieldsCount()
override;
115 virtual size_t rowsCount()
override;
116 virtual winux::String fieldType(
size_t fieldIndex )
override;
141 #endif // HAVE_DB_SQLITE 145 #endif // __EIENDB_SQLITE_HPP__ XString< char > AnsiString
Mixed const mxNull
Mixed(MT_NULL)常量对象
std::map< String, Mixed > StringMixedMap
winux::String getSql() const
SqliteDbError(int sqliteErrNo, winux::AnsiString const &s)
SqliteConnection * getCnn() const
#define DISABLE_OBJECT_COPY(clsname)
std::vector< Mixed > MixedArray
int getSqliteErrCode() const
XStringArray< tchar > StringArray