mongodb - When i run convertToCapped command in python using pymongo then it gives error that variable size is not defind -
command is:
db.command({'converttocapped': 'info', size:100000}) traceback (most recent call last): file "<pyshell#18>", line 1, in <module> db.command({'converttocapped': 'info', size:100000}) nameerror: name 'size' not defined
from understand need run command pymongo:
db.command( "converttocapped', 'info', size = 100000 );
as described on http://api.mongodb.org/python/current/api/pymongo/database.html#pymongo.database.database.command
Comments
Post a Comment