Version: 1.0.0
mysql_resultset_metadata.h
Go to the documentation of this file.
1 #ifndef _WX_DATABASE_MYSQL_RESULT_SET_METADATA_H_
2 #define _WX_DATABASE_MYSQL_RESULT_SET_METADATA_H_
3 
4 #include "wx/database/wxprec.h"
5 
7 {
8 public:
9  // ctor
10  wxMysqlResultSetMetaData(wxMysqlDynamicInterface* pInterface, MYSQL_RES* pMetaData);
11 
12  // dtor
13  virtual ~wxMysqlResultSetMetaData();
14 
15  virtual int GetColumnType(int i);
16  virtual int GetColumnSize(int i);
17  virtual wxString GetColumnName(int i);
18  virtual int GetColumnCount();
19 
20 private:
21  MYSQL_FIELD* GetColumn(int nField);
22 
24  MYSQL_RES* m_pMetaData;
25 };
26 
27 #endif//_WX_DATABASE_MYSQL_RESULT_SET_METADATA_H_
virtual ~wxMysqlResultSetMetaData()
wxMysqlDynamicInterface * m_pInterface
virtual int GetColumnType(int i)
Retrieve a column's type.
virtual int GetColumnSize(int i)
Retrieve a column's size.
virtual wxString GetColumnName(int i)
Retrieve a column's name.
virtual int GetColumnCount()
Retrieve the number of columns in the result set.
MYSQL_FIELD * GetColumn(int nField)
wxMysqlResultSetMetaData(wxMysqlDynamicInterface *pInterface, MYSQL_RES *pMetaData)