|
|
__init__(self,
database,
host='127.0.0.1',
port=27017,
usr=None,
pw=None,
create=False,
logger=None)
Sets up a connection to a gridFS on a given database if the database
does not exist and create=True, the Database is also created :param
Database: Database on which to look for GridFS :param host: Host of
the MongoDB :param port: Port of MongoDB :param usr: user authorized
for the connection :param pw: password for the authorized user :param
create: whether to create a file storage if it doesn't exist |
source code
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|