OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::context::count_fn Struct Reference

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

Detailed Description

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.

Member Function Documentation

◆ operator()()

int64_t oxy::context::count_fn::operator() ( context_t const & ctx) const
Parameters
ctx- The database context for which to count the rows.
Returns
The count of rows in the specified context.