1 #ifndef __EIENDB_MYSQL_HPP__ 2 #define __EIENDB_MYSQL_HPP__ 27 virtual bool connect();
59 virtual operator bool()
const {
return _mysql != NULL; }
60 operator struct st_mysql * ()
const {
return _mysql; }
62 struct st_mysql * _mysql;
88 virtual bool bind(
int paramIndex,
winux::Mixed const & val );
92 operator bool()
const {
return !_orgSql.empty(); }
106 bool _isGeneratedSql;
108 std::vector< std::pair< int, winux::Mixed > > _bindingParams;
109 std::vector< std::pair< winux::String, winux::Mixed > > _bindingNameParams;
121 virtual bool dataSeek(
int index );
122 virtual bool fetchRow(
winux::Mixed * fields,
int type = 0 );
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();
170 #endif // __EIENDB_MYSQL_HPP__ int getMySqlErrCode() const
MySQLConnection * getCnn() const
std::map< String, Mixed > StringMixedMap
std::basic_string< char > AnsiString
#define DISABLE_OBJECT_COPY(clsname)
std::vector< String > StringArray
std::vector< Mixed > MixedArray
MySQLDbError(int mysqlErrNo, winux::AnsiString const &s)
std::basic_string< tchar > String