diff options
author | Azul <azul@riseup.net> | 2013-09-12 09:57:45 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-09-12 09:57:45 +0200 |
commit | 37f87300c9804bdad66d730b676715e242b9ca42 (patch) | |
tree | 7fa746846c2a127812d28d58cc5f0abd04cf180d /lib/tapicero/couch_stream.rb | |
parent | 929fcdea37f92f6b175482c6e0d1b8ff3229854f (diff) |
use CouchRest::Database#changes, store and retrieve seq
This commit bundles a few different changes:
* we now use the CouchRest::Database#changes stream instead of our own
* we store and read the last sequence number so on a restart we can start where we left
* we now have a UserDatabase class rather than the CouchDatabaseCreator. It also knows about it's name and we create an instance of it per database we want to create. It's also more flexible when the databases already exist.
Diffstat (limited to 'lib/tapicero/couch_stream.rb')
-rw-r--r-- | lib/tapicero/couch_stream.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tapicero/couch_stream.rb b/lib/tapicero/couch_stream.rb index 8583010..b63a9fd 100644 --- a/lib/tapicero/couch_stream.rb +++ b/lib/tapicero/couch_stream.rb @@ -1,3 +1,8 @@ +# +# UNUSED: we currently use CouchRest's streamer instead. Still keeping this +# around because it's a simple alternative that works. +# + module Tapicero class CouchStream def initialize(database_url) |