MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / create_user

Method create_user

test/asynchronous/__init__.py:478–480  ·  view source on GitHub ↗
(self, dbname, user, pwd=None, roles=None, **kwargs)

Source from the content-addressed store, hash-verified

476 return make_wrapper(func)
477
478 async def create_user(self, dbname, user, pwd=None, roles=None, **kwargs):
479 kwargs["writeConcern"] = {"w": self.w}
480 return await _create_user(self.client[dbname], user, pwd, roles, **kwargs)
481
482 async def drop_user(self, dbname, user):
483 await self.client[dbname].command("dropUser", user, writeConcern={"w": self.w})

Callers 9

asyncSetUpMethod · 0.45
test_auth_from_uriMethod · 0.45
asyncSetUpMethod · 0.45
test_scramMethod · 0.45
test_scram_saslprepMethod · 0.45
asyncSetUpMethod · 0.45

Calls 1

_create_userFunction · 0.70

Tested by 9

asyncSetUpMethod · 0.36
test_auth_from_uriMethod · 0.36
asyncSetUpMethod · 0.36
test_scramMethod · 0.36
test_scram_saslprepMethod · 0.36
asyncSetUpMethod · 0.36