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

Function object to execute a SQL statement on a SQLite database connection. More...

#include <connection.hpp>

Public Member Functions

void operator() (connection_ptr const &conn, std::string sql_expr) const

Detailed Description

Function object to execute a SQL statement on a SQLite database connection.

This function object provides an operator() that takes a connection_ptr and a SQL expression string, and executes the SQL statement on the underlying SQLite database.

Member Function Documentation

◆ operator()()

void oxy::exec_fn::operator() ( connection_ptr const & conn,
std::string sql_expr ) const
inline
Parameters
conn- The connection pointer to the SQLite database.
sql_expr- The SQL expression string to be executed.