droplet 1.3.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
database Namespace Reference

Functions

template<typename... Types>
bool execQuery (const std::string &query, Types &&... args) noexcept
 executes a query on the database
template<typename... Types>
RowDTOAdapter execSelect (const std::string &query, Types &&... args) noexcept
 executes a Select on the database
template<typename... Types>
std::vector< RowDTOAdapterexecSelectAll (const std::string &query, Types &&... args) noexcept
 executes a Select on the database

Function Documentation

◆ execQuery()

template<typename... Types>
bool database::execQuery ( const std::string & query,
Types &&... args )
nodiscardnoexcept

executes a query on the database

Parameters
querySQL query to be executed
argsthe arguments the query takes
Returns
error code if the query was executed

◆ execSelect()

template<typename... Types>
RowDTOAdapter database::execSelect ( const std::string & query,
Types &&... args )
nodiscardnoexcept

executes a Select on the database

Parameters
querySQL select query to be executed
argsthe arguments the query takes
Returns
RowDTOAdapter that represents the selected database row

◆ execSelectAll()

template<typename... Types>
std::vector< RowDTOAdapter > database::execSelectAll ( const std::string & query,
Types &&... args )
nodiscardnoexcept

executes a Select on the database

Parameters
querySQL select query to be executed
argsthe arguments the query takes
Returns
std::vector<RowDTOAdapter> that represents the selected database rows