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

Function object to count entries in a schema of a SQLite database. More...

#include <connection.hpp>

Public Member Functions

uint32_t operator() (connection_ptr const &conn, std::string const &schema_name) const

Detailed Description

Function object to count entries in a schema of a SQLite database.

This function object provides an operator() that takes a connection_ptr and a schema name, and returns the number of entries in the specified schema of the SQLite database.

Member Function Documentation

◆ operator()()

uint32_t oxy::count_fn::operator() ( connection_ptr const & conn,
std::string const & schema_name ) const
Parameters
conn- The connection pointer to the SQLite database.
schema_name- The name of the schema to count entries in.
Returns
The number of entries in the specified schema of the SQLite database.