Added documentation

This commit is contained in:
Dr. Patrick Urbanke
2025-05-07 04:18:10 +02:00
parent 831ca01d43
commit b73e2a512d
7 changed files with 438 additions and 48 deletions

View File

@@ -54,6 +54,7 @@ const auto conn = sqlgen::postgres::connect(credentials);
using namespace sqlgen;
// Query that returns the 100 youngest children.
// Columns are referred to using the _c operator.
const auto get_children = sqlgen::read<std::vector<People>> |
where("age"_c < 18) |
order_by("age"_c, "first_name"_c) |