Skip to content

kbatten/couchmigrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Syntax: couchbase-migrator [options]

Options:
 -h, --help

 -s <source>, --source=<source>
     Data source that will be imported from

 -d <destination>, --destination=<destination>
     Data destination that will be exported to

Sources:
 csv
     csv:<filename>

 json
     json:<filename>

 couchdb
     couchdb:example.com:5984/database


Destinations:
 couchbase
     couchbase:username:[email protected]:8091/bucket

 json
     json:<filename>


File formats:
 csv
"id","a","b","c"
"key1",1,"x","foo"
"key2",2,"y","bar"
"key3",3,"z","baz"

 json
{"id": "key1", "value": {"a": "1", "c": "foo", "b": "x"}}
{"id": "key2", "value": {"a": "2", "c": "bar", "b": "y"}}
{"id": "key3", "value": {"a": "3", "c": "baz", "b": "z"}}


Requires:
 couchbase-python-client
  https://github.com/couchbase/couchbase-python-client

 python-couchdb
  http://code.google.com/p/couchdb-python


Todo:
 Support either add or set for couchbase/membase/memcached destinations
 Support flags and expiry for couchbase/membase/memcached destinations
 Figure out how to deal with attachments from couchdb
 Speed up loading into couchbase, its painfully slow currently

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages