npm/seq-save

Name: seq-save

Owner: npm

Description: save a sequence # to a configurable backend (etcd, files, etc.)

Created: 2017-10-24 22:11:55.0

Updated: 2017-10-27 19:15:57.0

Pushed: 2017-10-25 21:30:31.0

Homepage: null

Size: 47

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

seq-save

Save CouchDB sequence #s to a configurable backend. This allows you to resume CouchDB replication from the point where you left off.

see also: changes-stream.

This is a replacement to seq-file, adding support for additional backends.

API
Backends
File (Default)

To save sequence files to the filesystem, simply provide the following configuration:

t SeqSave = require('seq-save')
t seq = new SeqSave('my-sequence.seq', {
pe: 'file'

It's worth noting that file is the default backend, so you can also simply provide an empty configuration object..

etcd

To save sequence files to etcd, simply provide the following configuration:

t Save = require('seq-save')
t seq = new SeqSave('my-sequence.seq', {
pe: 'etcd',
st: 'http://127.0.0.1:2379'


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.