MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / _check_db_name

Function _check_db_name

mongoengine/connection.py:53–60  ·  view source on GitHub ↗

Check if a database name is valid. This functionality is copied from pymongo Database class constructor.

(name)

Source from the content-addressed store, hash-verified

51
52
53def _check_db_name(name):
54 """Check if a database name is valid.
55 This functionality is copied from pymongo Database class constructor.
56 """
57 if not isinstance(name, str):
58 raise TypeError("name must be an instance of %s" % str)
59 elif name != "$external":
60 _check_name(name)
61
62
63def _get_connection_settings(

Callers 1

_get_connection_settingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected