aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/connection.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/sqlite/connection.hxx')
-rw-r--r--odb/sqlite/connection.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/odb/sqlite/connection.hxx b/odb/sqlite/connection.hxx
index 0df08b3..5390609 100644
--- a/odb/sqlite/connection.hxx
+++ b/odb/sqlite/connection.hxx
@@ -23,6 +23,7 @@ namespace odb
{
namespace sqlite
{
+ class statement;
class statement_cache;
class LIBODB_SQLITE_EXPORT connection: public details::shared_base
@@ -55,14 +56,27 @@ namespace odb
return *statement_cache_;
}
+ public:
+ // Reset active and finalize uncached statements.
+ //
+ void
+ clear ();
+
private:
connection (const connection&);
connection& operator= (const connection&);
private:
+ friend class statement;
+
database_type& db_;
sqlite3* handle_;
+ // Linked list of active and uncached statements currently associated
+ // with this connection.
+ //
+ statement* statements_;
+
std::auto_ptr<statement_cache_type> statement_cache_;
};
}