Version: 1.0.0
src
database
tds
tds_resultset_metadata.cpp
Go to the documentation of this file.
1
#include "
wx/database/wxprec.h
"
2
3
#if wxUSE_DATABASE_TDS
4
5
#include "wx/arrimpl.cpp"
6
WX_DEFINE_OBJARRAY(ArrayOfTdsColumns);
7
8
// ctor
9
wxTdsResultSetMetaData::wxTdsResultSetMetaData
(TDSRESULTINFO* pInfo)
10
{
11
for
(
int
i=0; i<pInfo->num_cols; i++)
12
{
13
wxTdsColumnData
column(pInfo->columns[i]);
14
m_Columns
.push_back(column);
15
}
16
}
17
18
int
wxTdsResultSetMetaData::GetColumnType
(
int
i)
19
{
20
return
m_Columns
[i-1].GetColumnType();
21
}
22
23
int
wxTdsResultSetMetaData::GetColumnSize
(
int
i)
24
{
25
return
m_Columns
[i-1].GetColumnSize();
26
}
27
28
wxString
wxTdsResultSetMetaData::GetColumnName
(
int
i)
29
{
30
return
m_Columns
[i-1].GetColumnName();
31
}
32
33
int
wxTdsResultSetMetaData::GetColumnCount
()
34
{
35
return
m_Columns
.size();
36
}
37
38
#endif//wxUSE_DATABASE_TDS
39
wxTdsResultSetMetaData::GetColumnName
virtual wxString GetColumnName(int i)
Retrieve a column's name.
wxprec.h
wxTdsResultSetMetaData::m_Columns
ArrayOfTdsColumns m_Columns
Definition:
tds_resultset_metadata.h:22
wxTdsResultSetMetaData::GetColumnCount
virtual int GetColumnCount()
Retrieve the number of columns in the result set.
wxTdsResultSetMetaData::GetColumnSize
virtual int GetColumnSize(int i)
Retrieve a column's size.
wxTdsResultSetMetaData::GetColumnType
virtual int GetColumnType(int i)
Retrieve a column's type.
wxTdsColumnData
Definition:
tds_columndata.h:6
wxTdsResultSetMetaData::wxTdsResultSetMetaData
wxTdsResultSetMetaData(TDSRESULTINFO *pInfo)
Generated on Mon Aug 19 2019 16:14:37 for wxDatabase by
Doxygen
1.8.15