#include #include #include namespace test_drop_dry { struct TestTable { std::string field1; int32_t field2; sqlgen::PrimaryKey id; std::optional nullable; }; TEST(postgres, test_drop_dry) { using namespace sqlgen; using namespace sqlgen::literals; const auto query = drop | if_exists; const auto expected = R"(DROP TABLE IF EXISTS "TestTable";)"; EXPECT_EQ(sqlgen::postgres::to_sql(query), expected); } } // namespace test_drop_dry