0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
Commit Graph

198 Commits

Author SHA1 Message Date
Mike Dirolf
5e387405eb minor: mongoexport exported count -> stderr so as not to clutter data going to stdout 2010-01-22 12:04:32 -05:00
Mike Dirolf
80ac4248a9 minor: tool argument errors to stderr not stdout 2010-01-22 11:53:14 -05:00
Dwight
7d26553061 a little code cleanup / renameing 2010-01-03 16:37:38 -05:00
Mathias Stearn
afbe8c64d9 Allocate line buffer on heap to avoid blowing the stack on windows. SERVER-410 2009-12-28 18:27:18 -05:00
Eliot Horowitz
fa8961c3e8 Exception classess need codes too SERVER-112 2009-12-28 17:06:07 -05:00
Eliot Horowitz
0ab8149a8e uassert/massert take error code SERVER-112 2009-12-28 16:43:43 -05:00
Eliot Horowitz
72282b1f8b better csv header line parsing 2009-12-22 14:16:48 -05:00
Eliot Horowitz
a246b2219f fix tool locking 2009-12-06 11:34:00 -05:00
Dwight
851a94b853 try to fix mongodump 2009-12-04 15:56:57 -05:00
Eliot Horowitz
84dc801b60 use SlaveOk for doing counts SERVER-450 2009-12-02 16:56:49 -05:00
Eliot Horowitz
c919b7feec init fix 2009-11-28 17:43:33 -05:00
Eliot Horowitz
e0dff0748a mongoimport take --headerline for csv,tsv SERVER-444 2009-11-28 17:29:23 -05:00
Eliot Horowitz
2e23773bf9 fix csv parsing with escaped fields SERVER-441 2009-11-28 11:19:51 -05:00
Eliot Horowitz
415f5e7fa8 more error handling 2009-11-27 23:30:31 -05:00
Eliot Horowitz
bed8ba812b fix assertion SERVER-433 2009-11-21 21:31:37 -05:00
Mathias Stearn
3e269473da mongofiles put --replace 2009-11-20 01:57:52 -05:00
Eliot Horowitz
ca785a0400 BDONObjBuilder::apendAsNumber
better fix for SERVER-423
2009-11-13 21:07:15 -05:00
Eliot Horowitz
02dfcf62e7 fix import with long long SERVER-424 2009-11-13 20:41:36 -05:00
Eliot Horowitz
d1057d5a9d clean trailing spaces when importing json SERVER-402 2009-11-02 09:52:58 -05:00
Eliot Horowitz
91e18dc16b tool cleaning 2009-10-27 11:44:22 -04:00
Eliot Horowitz
feb2a40d5f use lexical_cast instead of atoll b/c of windows 2009-10-21 14:17:58 -04:00
Eliot Horowitz
b446a74aec use long long for long int strings 2009-10-21 14:04:31 -04:00
Dwight
01f1f6915d move CurOp into Client and make inprog handle multiple in progress 2009-10-16 15:36:34 -04:00
Mathias Stearn
468b56691b add delete command to mongofiles 2009-10-14 18:19:14 -04:00
Mathias Stearn
23bbf840ba add uploadDate and contentType fields to GridFS files generated in C++. Add --type option to mongofiles. 2009-10-14 17:43:18 -04:00
Mathias Stearn
b7a086e1ad mongofiles now supports stdin/out for put/get operations 2009-10-14 17:43:18 -04:00
Eliot Horowitz
46fc3058c8 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-12 15:24:57 -04:00
Eliot Horowitz
1b27e7aae7 --ignoreBlanks option for import 2009-10-12 15:24:38 -04:00
Dwight
68b99ea200 Merge branch 'master' of git@github.com:mongodb/mongo 2009-10-12 15:21:41 -04:00
Dwight
81a73d0f63 compile 2009-10-12 15:21:30 -04:00
Eliot Horowitz
fcd3220d16 add option to read fields from a file 2009-10-12 15:05:42 -04:00
Eliot Horowitz
65fb01f015 debugging for import 2009-10-11 20:24:12 -04:00
Eliot Horowitz
8a6dfdc9e9 cleaning tool debugging/tests 2009-10-09 22:11:15 -04:00
Eliot Horowitz
503d45411b Connection::initThread 2009-10-09 20:58:41 -04:00
Eliot Horowitz
0496aa5ac7 changed mongoimportJSON to mongoimport - handles json/tsv/csv 2009-10-09 14:55:29 -04:00
Eliot Horowitz
35bb22d27e _id index is created automatically now 2009-10-09 13:48:57 -04:00
Eliot Horowitz
a54742b3de make mongoimportjson not crash with small objects, some ProgressMeter enhancements SERVER-342 2009-10-08 10:11:26 -04:00
Eliot Horowitz
27fd0a7a9f more ProgressMeter to public place 2009-10-05 15:09:18 -04:00
Mike Dirolf
c000bcaafd allow restoring a single collection to a different collection name 2009-09-29 17:11:31 -04:00
Mike Dirolf
c5985d6892 mongofiles: --local option to specify different filename on local filesystem than on GridFS 2009-09-24 16:31:18 -04:00
Mike Dirolf
a4d00f78d3 make restore directory a positional argument 2009-09-24 12:05:32 -04:00
Mike Dirolf
ee9b2ea7ea allow mongorestore to restore a single .bson file 2009-09-24 12:05:31 -04:00
Mike Dirolf
f6852db36b minor: whitespace 2009-09-24 12:05:31 -04:00
Eliot Horowitz
46000ef2d4 nice progress meters for dump/restore SERVER-307 2009-09-24 11:17:03 -04:00
Eliot Horowitz
01e1564c03 casing 2009-09-24 11:02:00 -04:00
Eliot Horowitz
a74cdf759d lowercase 2009-09-24 11:00:16 -04:00
Eliot Horowitz
524956f52a replace posix file write ops with ostream 2009-09-23 10:30:40 -04:00
Mike Dirolf
76c4935a58 mongorestore: can specify db to restore to (only when restoring a directory containing a single databases files) 2009-09-15 17:03:03 -04:00
Mike Dirolf
adeafb1d49 restore: use default arg instead of positional for dump directory. check for valid directory before drilling down 2009-09-15 17:03:03 -04:00
Eliot Horowitz
265af2d1f9 restore can import 64-bit data files with 32-bit mongorestore SERVER-141 2009-09-15 13:48:26 -04:00
Eliot Horowitz
8d07d50c48 fix embedded fields in export SERVER-293 2009-09-13 06:58:00 -04:00
Mike Dirolf
c03fe0d5c5 mongodump: move default argument to options declaration so it shows up in help text 2009-09-11 14:33:10 -04:00
Mike Dirolf
bf5faae277 minor: whitespace 2009-09-11 14:15:28 -04:00
Mike Dirolf
eae40d3e62 minor: mongofiles more clear docs 2009-09-11 14:14:31 -04:00
Eliot Horowitz
fdc8d61ba3 print hex of id also 2009-09-11 13:23:22 -04:00
Mike Dirolf
64a1af2b42 mongoexport: copy fields argument before parsing 2009-09-10 11:01:37 -04:00
Mike Dirolf
4cc0e11834 tools: support for -vvvv, use same options style as mongod and mongo 2009-09-01 16:52:50 -04:00
Mike Dirolf
71f76d998c add hidden_options to Tool.cpp - better help message for mongofiles 2009-09-01 16:27:08 -04:00
Mike Dirolf
0bbc36fae3 minor: more whitespace 2009-09-01 15:53:31 -04:00
Mike Dirolf
fd2a19c1bc tools: make output nicer on program options errors 2009-09-01 15:51:17 -04:00
Mike Dirolf
2df6ddd566 minor: whitespace 2009-09-01 15:43:23 -04:00
Eliot Horowitz
e88425081d make read buffer bigger SERVER-265 2009-08-26 12:22:48 -04:00
Eliot Horowitz
38bb9b15c2 when doing a dump from a replica pair, do it from the slave SERVER-169 2009-08-12 16:55:18 -04:00
Eliot Horowitz
016d49ffd2 auth support for tools SERVER-147 2009-08-12 16:31:22 -04:00
Eliot Horowitz
a5b2286039 don't need execinfo in bridge at all MINOR 2009-08-12 15:50:35 -04:00
Mike Dirolf
172cec88a6 check for NOEXECINFO for mongobridge as well 2009-08-12 15:34:39 -04:00
Eliot Horowitz
886e5b605d almost made sniff compile on WIN32 MINOR 2009-08-11 17:17:23 -04:00
Eliot Horowitz
c13927d6d3 another sniff win attempt MINOR 2009-08-11 17:14:15 -04:00
Eliot Horowitz
2dc836fbb8 try to fix win32 compile MINOR 2009-08-11 17:09:01 -04:00
Eliot Horowitz
be7ff8eadd use DBClientPaired when given , servers 2009-08-11 13:35:59 -04:00
Eliot Horowitz
043f15bbd7 use $snapshot for dump/export tools SERVER-226 2009-08-11 10:50:02 -04:00
Mike Dirolf
04d1d87a5f towards mongosniff on windows with winpcap 2009-08-07 17:02:47 -04:00
Eliot Horowitz
d7551c2925 possibly fix / 0 - verbose 2009-07-13 14:10:16 -04:00
Eliot Horowitz
3806a9dfff verbose MINOR 2009-07-13 14:09:43 -04:00
Eliot Horowitz
b3303c0708 / 0 safety 2009-07-13 13:48:08 -04:00
Eliot Horowitz
8371ce3872 nicer error message 2009-07-13 13:44:03 -04:00
Eliot Horowitz
86c5028dca fix 64-bit mongorestore 2009-07-13 11:24:43 -04:00
Eliot Horowitz
9d928c0e7a catch exceptions in Tool::main so tools don't abort SERVER-137 2009-07-10 10:59:30 -04:00
Eliot Horowitz
bd018f61d5 long instead of int for file size 2009-07-09 16:56:34 -04:00
Eliot Horowitz
77a1a11579 freebsd warning MINOR 2009-07-02 09:27:03 -04:00
Eliot Horowitz
1c099e789f make -c work for mongodump 2009-06-28 23:26:34 -04:00
Mike Dirolf
6f2a2dda8c mongoimport: default to stdin 2009-06-25 16:45:48 -04:00
Mike Dirolf
39c11c8283 importjson: show help text for bad arguments 2009-06-25 16:40:39 -04:00
Mike Dirolf
97fe2a9177 minor: help text 2009-06-25 16:17:42 -04:00
Mike Dirolf
c8c17ed3eb print help if you don't give a namespace 2009-06-25 16:15:15 -04:00
Mike Dirolf
efe8911ecc minor: whitespace 2009-06-25 16:11:38 -04:00
Mike Dirolf
dc0681edad sniffer check args length to avoid segfault w/ bad args - print error from underlying pcap calls 2009-06-25 11:56:39 -04:00
Mike Dirolf
45133d2f25 whitespace 2009-06-25 11:26:56 -04:00
Eliot Horowitz
dba174cb19 work around assert in mmap 2009-06-11 12:32:19 -04:00
Eliot Horowitz
7d9befe0e0 a little more info for query diagnostics MINOR 2009-06-03 17:07:49 -04:00
Aaron
c03a7186cf file allocator compile windows MINOR 2009-05-28 12:59:27 -04:00
Aaron
c5ffd65fb2 mongobridge close client ports on kill 2009-05-20 14:16:14 -04:00
Aaron
3b2ae5b7fb close mongobridge's listener socket when program killed 2009-05-20 14:07:10 -04:00
Aaron
333dbae272 adjust help formatting MINOR 2009-05-20 12:19:33 -04:00
Aaron
3aa95556bd better message when root missing MINOR 2009-05-20 12:15:41 -04:00
Aaron
11ae38a6ff use file allocator to allow writes in Tools MINOR 2009-05-20 12:15:26 -04:00
Aaron
85c396b10c Merge branch 'master' of git@github.com:mongodb/mongo 2009-05-20 11:39:22 -04:00
Aaron
da7a9b3f71 make tools capable of running standalone, without a mongod instance 2009-05-20 11:39:12 -04:00
Aaron
6516e72042 add option to output to file 2009-05-20 11:28:55 -04:00
Aaron
6c0692a900 tool log 'connected' message to stderr 2009-05-18 14:45:37 -04:00