FOSSredder 0.5.0
Loading...
Searching...
No Matches
persistence::StmtGuard Class Reference

#include <StmtGuard.h>

Public Member Functions

 StmtGuard (sqlite3 *db, const char *sql) noexcept
 StmtGuard (sqlite3 *db, const std::string &sql) noexcept
 ~StmtGuard () noexcept
 StmtGuard (const StmtGuard &)=delete
StmtGuard & operator= (const StmtGuard &)=delete
 operator bool () const noexcept
sqlite3_stmt * get () const noexcept
int step () noexcept
void reset () noexcept
void bindText (int col, const std::string &v) noexcept
void bindInt (int col, int v) noexcept
void bindInt64 (int col, int64_t v) noexcept
void bindDouble (int col, double v) noexcept
std::string columnText (int col) const noexcept
int columnInt (int col) const noexcept
int64_t columnInt64 (int col) const noexcept
double columnDouble (int col) const noexcept

Detailed Description

Definition at line 12 of file StmtGuard.h.

Constructor & Destructor Documentation

◆ StmtGuard() [1/3]

persistence::StmtGuard::StmtGuard ( sqlite3 * db,
const char * sql )
inlinenoexcept

Definition at line 14 of file StmtGuard.h.

Here is the caller graph for this function:

◆ StmtGuard() [2/3]

persistence::StmtGuard::StmtGuard ( sqlite3 * db,
const std::string & sql )
inlinenoexcept

Definition at line 18 of file StmtGuard.h.

◆ ~StmtGuard()

persistence::StmtGuard::~StmtGuard ( )
inlinenoexcept

Definition at line 22 of file StmtGuard.h.

◆ StmtGuard() [3/3]

persistence::StmtGuard::StmtGuard ( const StmtGuard & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ bindDouble()

void persistence::StmtGuard::bindDouble ( int col,
double v )
inlinenoexcept

Definition at line 53 of file StmtGuard.h.

Here is the caller graph for this function:

◆ bindInt()

void persistence::StmtGuard::bindInt ( int col,
int v )
inlinenoexcept

Definition at line 47 of file StmtGuard.h.

Here is the caller graph for this function:

◆ bindInt64()

void persistence::StmtGuard::bindInt64 ( int col,
int64_t v )
inlinenoexcept

Definition at line 50 of file StmtGuard.h.

◆ bindText()

void persistence::StmtGuard::bindText ( int col,
const std::string & v )
inlinenoexcept

Definition at line 44 of file StmtGuard.h.

Here is the caller graph for this function:

◆ columnDouble()

double persistence::StmtGuard::columnDouble ( int col) const
inlinenoexcept

Definition at line 67 of file StmtGuard.h.

◆ columnInt()

int persistence::StmtGuard::columnInt ( int col) const
inlinenoexcept

Definition at line 61 of file StmtGuard.h.

Here is the caller graph for this function:

◆ columnInt64()

int64_t persistence::StmtGuard::columnInt64 ( int col) const
inlinenoexcept

Definition at line 64 of file StmtGuard.h.

◆ columnText()

std::string persistence::StmtGuard::columnText ( int col) const
inlinenoexcept

Definition at line 57 of file StmtGuard.h.

Here is the caller graph for this function:

◆ get()

sqlite3_stmt * persistence::StmtGuard::get ( ) const
inlinenoexcept

Definition at line 33 of file StmtGuard.h.

◆ operator bool()

persistence::StmtGuard::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 30 of file StmtGuard.h.

◆ operator=()

StmtGuard & persistence::StmtGuard::operator= ( const StmtGuard & )
delete
Here is the call graph for this function:

◆ reset()

void persistence::StmtGuard::reset ( )
inlinenoexcept

Definition at line 40 of file StmtGuard.h.

◆ step()

int persistence::StmtGuard::step ( )
inlinenoexcept

Definition at line 37 of file StmtGuard.h.


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