mirror of
https://github.com/getml/sqlgen.git
synced 2026-01-04 08:30:30 -06:00
Added the _c operator
This commit is contained in:
@@ -33,7 +33,7 @@ TEST(sqlite, test_limit) {
|
||||
using namespace sqlgen;
|
||||
|
||||
const auto query =
|
||||
sqlgen::read<std::vector<Person>> | order_by(col<"age">) | limit(2);
|
||||
sqlgen::read<std::vector<Person>> | order_by("age"_c) | limit(2);
|
||||
|
||||
const auto people2 = query(conn).value();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user