mirror of
https://github.com/getml/sqlgen.git
synced 2026-02-18 14:48:32 -06:00
Fixed yet another typo
This commit is contained in:
@@ -45,10 +45,10 @@ and print the results as a JSON:
|
||||
|
||||
const auto conn = sqlgen::sqlite3::connect("example.db");
|
||||
|
||||
const auto people = sqlgen::sqlite3::read<People>(conn);
|
||||
const auto result = sqlgen::sqlite3::read<People>(conn);
|
||||
|
||||
if (people) {
|
||||
std::cout << rfl::json::write(*people) << std::endl;
|
||||
if (result) {
|
||||
std::cout << rfl::json::write(*result) << std::endl;
|
||||
} else {
|
||||
std::cout << result.error().what() << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user