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:
parent
09226497a4
commit
e928b72ede
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user