diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dbRecordSet.cpp | 6 | ||||
-rw-r--r-- | lib/dbRecordSet.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/dbRecordSet.cpp b/lib/dbRecordSet.cpp index 66ade0e..3754130 100644 --- a/lib/dbRecordSet.cpp +++ b/lib/dbRecordSet.cpp @@ -14,4 +14,10 @@ namespace MyGrate { { return {this, row}; } + + DbValue + RecordSet::operator*() const + { + return at(0, 0); + } } diff --git a/lib/dbRecordSet.h b/lib/dbRecordSet.h index c84bb46..e430e58 100644 --- a/lib/dbRecordSet.h +++ b/lib/dbRecordSet.h @@ -38,6 +38,7 @@ namespace MyGrate { virtual std::size_t columns() const = 0; virtual DbValue at(std::size_t, std::size_t) const = 0; RowView operator[](std::size_t row) const; + DbValue operator*() const; }; using RecordSetPtr = std::unique_ptr<RecordSet>; } |