lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::sqlite::Statement Class Reference

#include <Statement.h>

Public Member Functions

 Statement (Connection &connection)
 
std::shared_ptr< Result > execute (const std::string &query)
 
std::shared_ptr< Result > execute (const std::string &query, const std::vector< std::string > &params)
 

Detailed Description

Executes SQL statements on an SQLite connection.

Constructor & Destructor Documentation

◆ Statement()

lintel::sqlite::Statement::Statement ( Connection &  connection)
explicit

Constructs a Statement bound to the given connection.

Parameters
connectionthe SQLite connection

Member Function Documentation

◆ execute() [1/2]

std::shared_ptr< Result > lintel::sqlite::Statement::execute ( const std::string &  query)

Executes a plain SQL query.

Parameters
querythe SQL query string
Returns
shared pointer to the result

◆ execute() [2/2]

std::shared_ptr< Result > lintel::sqlite::Statement::execute ( const std::string &  query,
const std::vector< std::string > &  params 
)

Executes a parameterized SQL query.

Parameters
querythe SQL query with placeholders
paramsthe parameter values as strings
Returns
shared pointer to the result

The documentation for this class was generated from the following file: