start to implement session::find()

This commit is contained in:
Sascha Kuehl 2024-03-27 07:39:06 +01:00
parent 5d06a13775
commit be9f66c427
1 changed files with 5 additions and 0 deletions

View File

@ -39,7 +39,12 @@ public:
}
// collect all columns
// - evaluate fetch::Eager flag for relations
auto info = schema_->info<Type>();
if (!info) {
return {};
}
c->query(*schema_).select({}).from(info->name);
// build pk where condition
// - check if type has pk
// - check type