cbimport

command module
v0.0.0-...-a845703 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2019 License: MIT Imports: 12 Imported by: 0

README

Description

cbimport imports JSON data into Couchbase. It matches cbimport json of cbimport command which is bundled with Couchbase Enterprise edition, whereas missing in community edition.

Installation

go install github.com/narslan/cbimport

Usage

The usage is similar to cbimport-json .

Inserting documents

 cbimport -c couchbase://127.0.0.1 -u Administrator -p password \
 -b default -d file:///data/lines.json -f lines -g key::%name%::#MONO_INCR#

Dryrun

To see the generated keys before inserting the documents into the database, run .

 cbimport -c couchbase://127.0.0.1 -u Administrator -p password \
 -b default -d file:///data/list.json -f list -g key::%name% -dry

Limits / TODOs

  • No threading (-t option doesn't work, yet)
  • No csv supports (yet)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL