| 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 | |
| 33 | int main() { |
nothing calls this directly
no outgoing calls
no test coverage detected