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

Function select

tests/boost_optional.cc:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19void select(database& db, bool should_be_null) {
20 db << "select id,val from test" >> [&](long long, boost::optional<int> val) {
21 if(should_be_null) {
22 if(val) exit(EXIT_FAILURE);
23 } else {
24 if(!val) exit(EXIT_FAILURE);
25 }
26 };
27}
28
29struct TmpFile {
30 string fname;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected