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;
59 virtual operator bool()
const override {
return _mysql != NULL; }
60 operator struct st_mysql * ()
const {
return _mysql; }
62 struct st_mysql * _mysql;
88 virtual bool bind(
size_t paramIndex,
winux::Mixed const & val )
override;
92 operator bool()
const {
return !_orgSql.empty(); }
97 winux::Mixed const & getParam(
size_t paramIndex )
const;
106 bool _isGeneratedSql;
108 std::vector< std::pair< size_t, winux::Mixed > > _bindingParams;
109 std::vector< std::pair< winux::String, winux::Mixed > > _bindingNameParams;
119 virtual bool free()
override;
121 virtual bool dataSeek(
size_t index )
override;
122 virtual bool fetchRow(
winux::Mixed * fields,
int type = 0 )
override;
125 virtual winux::String fieldName(
size_t fieldIndex )
override;
126 virtual size_t fieldsCount()
override;
127 virtual size_t rowsCount()
override;
128 virtual winux::String fieldType(
size_t fieldIndex )
override;
131 operator bool()
const {
return _mysqlRes != NULL; }
132 operator struct st_mysql_res * ()
const {
return _mysqlRes; }
134 struct st_mysql_res * _mysqlRes;
137 std::vector<winux::uint> _fieldTypes;
138 std::vector<winux::uint> _fieldFlags;
159 virtual void _getTableInfo()
override;
170 #endif // __EIENDB_MYSQL_HPP__ XString< char > AnsiString
std::map< String, Mixed > StringMixedMap
#define DISABLE_OBJECT_COPY(clsname)
std::vector< Mixed > MixedArray
int getMysqlErrCode() const
XStringArray< tchar > StringArray
MysqlConnection * getCnn() const
MysqlDbError(int mysqlErrNo, winux::AnsiString const &s)