1 #ifndef __EIENDB_BASE_HPP__ 2 #define __EIENDB_BASE_HPP__ 11 #if defined(_MSC_VER) || defined(WIN32) 12 #pragma warning( disable: 4251 ) 13 #ifdef EIENDB_DLL_EXPORTS 14 #define EIENDB_DLL __declspec(dllexport) 16 #define EIENDB_DLL __declspec(dllimport) 19 #define EIENDB_API __stdcall 29 #define EIENDB_FUNC_DECL(ret) EIENDB_DLL ret EIENDB_API 30 #define EIENDB_FUNC_IMPL(ret) ret EIENDB_API 34 #define interface struct 68 virtual bool connect();
93 virtual size_t affectedRows();
138 virtual size_t insertId();
196 virtual operator bool()
const = 0;
212 virtual bool bind(
size_t paramIndex,
winux::Mixed const & val );
226 virtual bool dataSeek(
size_t index );
231 virtual bool fetchRow(
winux::Mixed * fields,
int type = 0 );
253 virtual size_t fieldsCount();
258 virtual size_t rowsCount();
353 virtual bool deleteOne(
winux::Mixed const & prkValue );
373 virtual bool addNew(
winux::Mixed const & fields )
override;
378 virtual bool deleteOne(
winux::Mixed const & prkValue )
override;
379 virtual bool deleteEx(
winux::String const & where )
override;
382 virtual void _getTableInfo() = 0;
395 #endif // __EIENDB_BASE_HPP__ XString< char > AnsiString
winux::String MixedToEscapedStr(winux::Mixed const &m, IDbConnection *cnn, winux::String const &addQuote="\'")
Mixed变量连接进SQL语句时的换码操作
void * DBHandle
数据库各种对象资源的指针类型
winux::StringArray _prkColumn
std::map< String, Mixed > StringMixedMap
#define EIENDB_FUNC_DECL(ret)
#define DISABLE_OBJECT_COPY(clsname)
DbError(int errType, winux::AnsiString const &s)
std::vector< Mixed > MixedArray
XStringArray< tchar > StringArray
winux::StringArray _fieldNames