Aktualizr
C++ SOTA Client
Public Member Functions | List of all members
SQLite3Guard Class Reference

Public Member Functions

sqlite3 * get ()
 
int get_rc () const
 
 SQLite3Guard (const char *path, bool readonly, std::shared_ptr< std::mutex > mutex=nullptr)
 
 SQLite3Guard (const boost::filesystem::path &path, bool readonly=false, std::shared_ptr< std::mutex > mutex=nullptr)
 
 SQLite3Guard (SQLite3Guard &&guard) noexcept
 
 SQLite3Guard (const SQLite3Guard &guard)=delete
 
SQLite3Guard operator= (const SQLite3Guard &guard)=delete
 
int exec (const char *sql, int(*callback)(void *, int, char **, char **), void *cb_arg)
 
int exec (const std::string &sql, int(*callback)(void *, int, char **, char **), void *cb_arg)
 
template<typename... Types>
SQLiteStatement prepareStatement (const std::string &zSql, const Types &... args)
 
std::string errmsg () const
 
void beginTransaction ()
 
void commitTransaction ()
 
void rollbackTransaction ()
 

Detailed Description

Definition at line 131 of file sql_utils.h.


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