[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/rbock/sqlpp11/optional/tests/postgresql/usage/Returning.cpp [Back]  [Original]

#include 

#include 
#include 
#include "../../include/test_helpers.h"

#include "TabFoo.h"
#include "make_test_connection.h"

int Returning(int, char*[])
{
  namespace sql = sqlpp::postgresql;

  sql::connection db = sql::make_test_connection();

  model::TabFoo foo = {};

  try
  {
    db.execute(R"(DROP TABLE IF EXISTS tabfoo;)");
    db.execute(R"(CREATE TABLE tabfoo
                   (
                   alpha bigserial NOT NULL,
                   beta smallint,
                   gamma text,
                   c_bool boolean,
                   c_timepoint timestamp with time zone DEFAULT now(),
                   c_day date
                   ))");

    std::cout
        

Web Proxy Viewer  |  New URL  |  Original Page