#include "Database.h"
#include "PgSqlException.h"
#include "Statement.h"
#include "RetTypes.h"
#include "BindTypes.h"
#include "Cursor.h"
#include <type_traits>
#include <tuple>
Go to the source code of this file.
Namespaces | |
namespace | psql |
Functions | |
void | psql::execute_sql (Database &db, std::string const &sql) |
Utility function which constructs a Statement with no arguments and executes it. | |
template<typename... Types> | |
std::vector< std::tuple < Types...> > | psql::query_sql (Database &db, std::string const &sql) |
template<typename... BTypes, typename... RTypes> | |
std::vector< std::tuple < RTypes...> > | psql::exec_statement (psql::Statement< psql::BindTypes< BTypes...>, psql::RetTypes< RTypes...> > &st, BTypes...bvs) |
Wrapper which calls execute on a Statement and aggregates rows into a std::vector. | |
template<unsigned int Col = 0, typename... BTypes, typename... RTypes> | |
auto | psql::exec_statement_col (psql::Statement< psql::BindTypes< BTypes...>, psql::RetTypes< RTypes...> > &st, BTypes...bvs)-> std |
Wrapper which extracts a column from Statement results. |