-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
56 lines (39 loc) · 1.12 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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