1 #ifndef __EIENDB_MYSQL_HPP__ 2 #define __EIENDB_MYSQL_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 size_t insertId()
override;
36 virtual int errNo()
override;
52 virtual operator bool()
const override {
return _mysql != NULL; }
84 virtual bool free()
override;
86 virtual bool dataSeek(
size_t index )
override;
87 virtual bool fetchRow(
winux::Mixed * fields,
int type = 0 )
override;
90 virtual winux::String fieldName(
size_t fieldIndex )
override;
91 virtual size_t fieldsCount()
override;
92 virtual size_t rowsCount()
override;
93 virtual winux::String fieldType(
size_t fieldIndex )
override;
96 operator bool()
const {
return _mysqlRes != NULL; }
103 std::vector<winux::uint> _fieldTypes;
104 std::vector<winux::uint> _fieldFlags;
118 #endif // HAVE_DB_MYSQL 122 #endif // __EIENDB_MYSQL_HPP__ XString< char > AnsiString
void * DbHandle
数据库各种对象资源的指针类型
Mixed const mxNull
Mixed(MT_NULL)常量对象
std::map< String, Mixed > StringMixedMap
IDbConnection * getCnn() const
#define DISABLE_OBJECT_COPY(clsname)
std::vector< Mixed > MixedArray
MysqlStatement(MysqlConnection *cnn, winux::String const &sql, winux::Mixed const ¶ms=winux::mxNull)
MysqlStatement(MysqlConnection *cnn)
int getMysqlErrCode() const
XStringArray< tchar > StringArray
MysqlConnection * getCnn() const
MysqlDbError(int mysqlErrNo, winux::AnsiString const &s)