From 0f9cfacd6cc45f78f1453a8eeb7ffa542dc5dc48 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Jul 2015 18:43:03 +0200 Subject: Implement SQLite incremental BLOB/TEXT I/O --- odb/sqlite/connection.ixx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'odb/sqlite/connection.ixx') diff --git a/odb/sqlite/connection.ixx b/odb/sqlite/connection.ixx index e0ed736..23df27c 100644 --- a/odb/sqlite/connection.ixx +++ b/odb/sqlite/connection.ixx @@ -6,6 +6,32 @@ namespace odb { namespace sqlite { + // active_objects + // + inline void active_object:: + list_add () + { + next_ = conn_.active_objects_; + conn_.active_objects_ = this; + + if (next_ != 0) + next_->prev_ = this; + } + + inline void active_object:: + list_remove () + { + (prev_ == 0 ? conn_.active_objects_ : prev_->next_) = next_; + + if (next_ != 0) + next_->prev_ = prev_; + + prev_ = 0; + next_ = this; + } + + // connection + // template inline prepared_query connection:: prepare_query (const char* n, const char* q) -- cgit v1.1