Compare commits
2 Commits
4a04a678f9
...
be9f66c427
| Author | SHA1 | Date |
|---|---|---|
|
|
be9f66c427 | |
|
|
5d06a13775 |
|
|
@ -33,6 +33,8 @@ public:
|
||||||
pointer get() { return obj_.get(); }
|
pointer get() { return obj_.get(); }
|
||||||
const value_type* get() const { return obj_.get(); }
|
const value_type* get() const { return obj_.get(); }
|
||||||
|
|
||||||
|
operator bool() const { return obj_.get() != nullptr; } // NOLINT(*-explicit-constructor)
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<value_type> obj_;
|
std::shared_ptr<value_type> obj_;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,12 @@ public:
|
||||||
}
|
}
|
||||||
// collect all columns
|
// collect all columns
|
||||||
// - evaluate fetch::Eager flag for relations
|
// - 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
|
// build pk where condition
|
||||||
// - check if type has pk
|
// - check if type has pk
|
||||||
// - check type
|
// - check type
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue