From 2893f749b651c41b9292ac9fb570d467cf17a63d Mon Sep 17 00:00:00 2001 From: Sascha Kuehl Date: Mon, 11 Dec 2023 20:18:58 +0100 Subject: [PATCH] updated README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f9a048d..1ab8175 100644 --- a/README.md +++ b/README.md @@ -54,9 +54,9 @@ session s(pool); s.create().table().execute(); std::vector> planes { - make_entity(1, "Airbus", "A380"), - make_entity(2, "Boeing", "707"), - make_entity(3, "Boeing", "747") + make_entity(1, "Airbus", "A380", Color::Green, {1, 2, 3}), + make_entity(2, "Boeing", "707", Color::White, {4, 5, 6}), + make_entity(3, "Boeing", "747", Color::Blue, {0, 0, 0}) }; auto stmt = s.insert() @@ -72,7 +72,7 @@ for (const auto &plane: planes) { s.update("airplane") .set({"model", "737"}) - .where("id"_col == 2) + .where("id"_col == 2 && "color"_col == Color::White) .execute(); auto result = s.select()