droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
Database.hpp File Reference
#include <cstddef>
#include <pqxx/pqxx>
#include <string>
#include <variant>
#include <vector>
#include "RowDTOAdapter.hpp"
Include dependency graph for Database.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Database
 

Namespaces

namespace  database
 

Functions

template<size_t I = 0, typename... Types>
constexpr void database::assignResults (const pqxx::result &result, std::vector< std::variant< Types... > > &args)
 
template<typename... Types>
auto database::execQuery (const std::string &query, Types &&... args) noexcept -> bool
 executes a query on the database
 
template<typename... Types>
auto database::execSelect (const std::string &query, Types &&... args) noexcept -> RowDTOAdapter
 executes a Select on the database
 
template<typename... Types>
auto database::execSelectAll (const std::string &query, Types &&... args) noexcept -> std::vector< RowDTOAdapter >
 executes a Select on the database