|
OXY API 1.0
OXY API Library Documentation
|
A function object that counts the number of rows in a database context. More...
#include <context.hpp>
Public Member Functions | |
| int64_t | operator() (context_t const &ctx) const |
A function object that counts the number of rows in a database context.
The count_fn struct defines a function call operator that takes a context_t as a parameter and returns the count of rows in the specified context. This allows for quick assessment of the amount of data present in the context without retrieving the actual rows.
| int64_t oxy::context::count_fn::operator() | ( | context_t const & | ctx | ) | const |
| ctx | - The database context for which to count the rows. |