0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Removed result::size()

The number of rows is unknown in many cases. This might depend on the
configuration.
This commit is contained in:
Roland Bock 2013-08-22 08:11:43 +02:00
parent 09226497a4
commit e928b72ede
2 changed files with 1 additions and 7 deletions

View File

@ -45,10 +45,9 @@ namespace sqlpp
bool operator==(const result& rhs) const; bool operator==(const result& rhs) const;
//! return the next row from the result or nullptr, if there is no next row //! return the next row from the result or a "false" row, if there is no next row
sqlpp::raw_result_row_t next(); sqlpp::raw_result_row_t next();
size_t num_cols() const; size_t num_cols() const;
size_t num_rows() const;
}; };
class connection: public sqlpp::connection class connection: public sqlpp::connection

View File

@ -97,11 +97,6 @@ namespace sqlpp
ResultRow _result_row; ResultRow _result_row;
}; };
size_t size() const
{
return _result.num_rows();
}
iterator begin() iterator begin()
{ {
return iterator(_result, _raw_result_row); return iterator(_result, _raw_result_row);