mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-02 03:00:38 -06:00
Add size() function to mysql::char_result_t #562
This commit is contained in:
@@ -68,6 +68,11 @@ namespace sqlpp
|
||||
return _handle == rhs._handle;
|
||||
}
|
||||
|
||||
size_t size() const
|
||||
{
|
||||
return _handle ? mysql_num_rows(_handle->mysql_res) : size_t{};
|
||||
}
|
||||
|
||||
template <typename ResultRow>
|
||||
void next(ResultRow& result_row)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user