moved column and table class from namespace sql to query

This commit is contained in:
Sascha Kühl
2025-11-18 16:27:38 +01:00
parent 7242dc2612
commit fb4bc03da0
79 changed files with 626 additions and 496 deletions
+3 -5
View File
@@ -8,8 +8,6 @@
namespace matador::sql {
class column;
class record final {
private:
using field_ref = std::reference_wrapper<field>;
@@ -41,11 +39,11 @@ public:
[[nodiscard]] const std::vector<field_ref>& columns() const;
[[nodiscard]] const field& at(const sql::column &col) const;
[[nodiscard]] const field& at(const std::string &name) const;
[[nodiscard]] const field& at(size_t index) const;
template<class Type>
std::optional<Type> at(const column &col) const {
return at(col).as<Type>();
std::optional<Type> at(const std::string &name) const {
return at(name).as<Type>();
}
template<class Type>
std::optional<Type> at(const size_t index) const {