mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-05-18 09:18:21 -05:00
Allow dynamic sort order
This commit is contained in:
@@ -160,6 +160,7 @@ int Select(int, char* [])
|
||||
s.offset.set(3u);
|
||||
s.group_by.add(t.beta);
|
||||
s.order_by.add(t.beta.asc());
|
||||
s.order_by.add(t.delta.order(sqlpp::sort_type::desc));
|
||||
for (const auto& row : db(s))
|
||||
{
|
||||
int64_t a = row.alpha;
|
||||
|
||||
Reference in New Issue
Block a user