1 #ifndef __EIENDB_SQLITE_HPP__ 2 #define __EIENDB_SQLITE_HPP__ 27 virtual bool connect()
override;
28 virtual bool close()
override;
29 virtual void alive()
override;
30 virtual bool setLinkCharset(
winux::String const & charset )
override;
31 virtual bool selectDb(
winux::String const & database )
override;
32 virtual bool createDb(
winux::String const & database )
override;
33 virtual bool dropDb(
winux::String const & database )
override;
34 virtual size_t affectedRows()
override;
35 virtual int errNo()
override;
47 virtual size_t insertId()
override;
65 virtual operator bool()
const override {
return _db != NULL; }
66 operator sqlite3 * ()
const {
return _db; }
100 virtual bool bind(
size_t paramIndex,
winux::Mixed const & val )
override;
103 operator sqlite3_stmt * ()
const {
return _stmt; }
111 sqlite3_stmt * _stmt;
113 std::vector< std::pair< size_t, winux::Mixed > > _bindingParams;
125 virtual bool fetchRow(
winux::Mixed * fields,
int type = 0 )
override;
128 virtual winux::String fieldName(
size_t fieldIndex )
override;
129 virtual size_t fieldsCount()
override;
130 virtual size_t rowsCount()
override;
131 virtual bool free()
override;
132 virtual winux::String fieldType(
size_t fieldIndex )
override;
163 virtual void _getTableInfo()
override;
175 #endif // __EIENDB_SQLITE_HPP__ XString< char > AnsiString
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