aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/statement.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/sqlite/statement.hxx')
-rw-r--r--odb/sqlite/statement.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/odb/sqlite/statement.hxx b/odb/sqlite/statement.hxx
index cf94c71..0ed8aa8 100644
--- a/odb/sqlite/statement.hxx
+++ b/odb/sqlite/statement.hxx
@@ -294,6 +294,19 @@ namespace odb
binding& result_;
};
+ struct LIBODB_SQLITE_EXPORT auto_result
+ {
+ explicit auto_result (select_statement& s): s_ (s) {}
+ ~auto_result () {s_.free_result ();}
+
+ private:
+ auto_result (const auto_result&);
+ auto_result& operator= (const auto_result&);
+
+ private:
+ select_statement& s_;
+ };
+
class LIBODB_SQLITE_EXPORT insert_statement: public statement
{
public: