diff Core/SQLite/Statement.h @ 138:f333c0398f6e

some hiding
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Oct 2012 16:53:03 +0200
parents 0e97abc7b950
children 9cd240cfd3a6
line wrap: on
line diff
--- a/Core/SQLite/Statement.h	Wed Oct 10 13:13:14 2012 +0200
+++ b/Core/SQLite/Statement.h	Wed Oct 10 16:53:03 2012 +0200
@@ -43,6 +43,7 @@
 #include <vector>
 #include <stdint.h>
 #include <boost/noncopyable.hpp>
+#include <gtest/gtest_prod.h>
 
 struct sqlite3_stmt;
 
@@ -67,6 +68,8 @@
     class Statement : public boost::noncopyable
     {
       friend class Connection;
+      FRIEND_TEST(SQLStatementTest, Run);
+      FRIEND_TEST(SQLStatementTest, Reset);
 
     private:
       StatementReference  reference_;
@@ -80,6 +83,10 @@
         return reference_.GetWrappedObject();
       }
 
+      // Resets the statement to its initial condition. This includes any current
+      // result row, and also the bound variables if the |clear_bound_vars| is true.
+      void Reset(bool clear_bound_vars = true);
+
     public:
       Statement(Connection& database,
                 const std::string& sql);
@@ -104,10 +111,6 @@
 
       bool Step();
 
-      // Resets the statement to its initial condition. This includes any current
-      // result row, and also the bound variables if the |clear_bound_vars| is true.
-      void Reset(bool clear_bound_vars = true);
-
       // Diagnostics --------------------------------------------------------------
 
       std::string GetOriginalSQLStatement();