102 void OralFKeyTest::testBasicFKeys ()
106 auto student = Util::oral::AdaptPtr<Student, OralFactory> (
db);
107 auto studentInfo = Util::oral::AdaptPtr<StudentInfo, OralFactory> (
db);
111 { { 0,
"Student 1" }, { 0, 0, 18, 1 } },
112 { { 0,
"Student 2" }, { 0, 0, 19, 1 } },
113 { { 0,
"Student 3" }, { 0, 0, 19, 2 } },
123 namespace sph = oral::sph;
125 const auto&
selected =
student->Select (sph::f<&Student::ID_> == sph::f<&StudentInfo::StudentID_> &&
126 sph::f<&StudentInfo::Age_> > 18);