add FieldsNum
This commit is contained in:
parent
55c5492183
commit
5255275640
@ -192,6 +192,12 @@ namespace a8
|
|||||||
return impl_->mysqlres ? mysql_num_rows(impl_->mysqlres) : 0;
|
return impl_->mysqlres ? mysql_num_rows(impl_->mysqlres) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Query::FieldsNum()
|
||||||
|
{
|
||||||
|
assert(impl_->mysqlres);
|
||||||
|
return impl_->mysqlres ? mysql_num_fields(impl_->mysqlres) : 0;
|
||||||
|
}
|
||||||
|
|
||||||
bool Query::Eof()
|
bool Query::Eof()
|
||||||
{
|
{
|
||||||
assert(impl_->mysqlres);
|
assert(impl_->mysqlres);
|
||||||
|
@ -38,6 +38,7 @@ namespace a8
|
|||||||
std::string FormatSqlEx(const char* fmt, std::initializer_list<a8::XValue> args);
|
std::string FormatSqlEx(const char* fmt, std::initializer_list<a8::XValue> args);
|
||||||
std::string FormatSql(const char* fmt, std::initializer_list<a8::XValue>& args);
|
std::string FormatSql(const char* fmt, std::initializer_list<a8::XValue>& args);
|
||||||
int RowsNum();
|
int RowsNum();
|
||||||
|
int FieldsNum();
|
||||||
bool Eof();
|
bool Eof();
|
||||||
void First();
|
void First();
|
||||||
void Prev();
|
void Prev();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user