MCPcopy Create free account
hub / github.com/SqliteModernCpp/sqlite_modern_cpp / all

Method all

tests/lvalue_functor_example.cc:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 user(int age, string name, double weight) : age(age), name(name), weight(weight) { }
24
25 static std::vector<user> all(sqlite::database& db) {
26 builder<user, int, std::string, double> person_builder;
27 db << "SELECT * FROM user;"
28 >> person_builder;
29 return std::move(person_builder.results); // move to avoid copying data ;-)
30 };
31};
32
33int main() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected