Poster of Linux kernelThe best gift for a Linux geek
MONGOIMPORTJSON

MONGOIMPORTJSON

Section: Mongo Database (1) Updated: June 2009
Local index Up
 

NAME

mongoimportjson - the Mongo import tool  

SYNOPSIS

mongoimportjson [OPTIONS]  

DESCRIPTION

mongoimportjson is a tool to import JSON documents into MongoDB. This utility takes a single file that contains one JSON string per line and inserts it. A databaase and collection must be specified.  

OPTIONS

--help
show usage information
-h, --host HOST
server to connect to (default HOST=localhost)
-d, --db DATABASE
database to use
-c, --c COLLECTION
collection to use
--file FILE
file from which to import
--dbpath PATH
directly access mongod data files in this path, instead of connecting to a mongod instance
--idbefore
create id index before importing
--id
create id index after importing (recommended)
--drop
drop collection before importing
 

COPYRIGHT

Copyright 2007-2009 10gen  

SEE ALSO

For more information, please refer to the MongoDB wiki, available at http://www.mongodb.org.  

AUTHOR

Kristina Chodorow


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
COPYRIGHT
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 21:24:01 GMT, April 16, 2011