mongoimportjson

Langue: en

Version: June 2009 (ubuntu - 24/10/10)

Section: 1 (Commandes utilisateur)

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 2007-2009 10gen

SEE ALSO

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

AUTHOR

Kristina Chodorow