WHERE works on SQLite

This commit is contained in:
Dr. Patrick Urbanke
2025-05-05 06:08:24 +02:00
parent 5496464de7
commit 4fc2eb7766
4 changed files with 100 additions and 3 deletions

View File

@@ -32,9 +32,10 @@ TEST(sqlite, test_where) {
using namespace sqlgen;
const auto query = sqlgen::read<std::vector<Person>> |
where(col<"first_name"> != col<"last_name">) |
order_by(col<"age">, col<"first_name">.desc());
const auto query =
sqlgen::read<std::vector<Person>> |
where(col<"first_name"> != col<"last_name"> or col<"id"> != col<"age">) |
order_by(col<"age">, col<"first_name">.desc());
const auto people2 = query(conn).value();