From c16bf7963d7098b0b284c46571403a13421051fc Mon Sep 17 00:00:00 2001 From: "Dr. Patrick Urbanke" Date: Wed, 19 Mar 2025 06:29:15 +0100 Subject: [PATCH] Improved README --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 619cd36..44a96e8 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ const auto conn = sqlgen::sqlite3::connect("example.db"); // Will automatically create a table called 'People' // with the columns 'first_name', 'last_name' and 'age', // if necessary. -const auto result = sqlgen::sqlite3::write(conn, people); +const auto result = sqlgen::write(conn, people); if (!result) { std::cout << result.error().what() << std::endl; @@ -45,7 +45,8 @@ and print the results as a JSON: const auto conn = sqlgen::sqlite3::connect("example.db"); -const auto result = sqlgen::sqlite3::read(conn); +const sqlgen::Result> result = + sqlgen::read>(conn); if (result) { std::cout << rfl::json::write(*result) << std::endl;