Exemplo n.º 1
0
 def __init__(self, client, name, _store, read_preference=None, codec_options=None):
     self.name = name
     self._client = client
     self._collection_accesses = {}
     self._store = _store or store.DatabaseStore()
     self._read_preference = read_preference or _READ_PREFERENCE_PRIMARY
     self._codec_options = codec_options
Exemplo n.º 2
0
 def __init__(self, client, name, _store, read_preference=None, codec_options=None):
     self.name = name
     self._client = client
     self._collection_accesses = {}
     self._store = _store or store.DatabaseStore()
     self._read_preference = read_preference or _READ_PREFERENCE_PRIMARY
     mongomock_codec_options.is_supported(codec_options)
     self._codec_options = codec_options or mongomock_codec_options.CodecOptions()
Exemplo n.º 3
0
 def __init__(self, client, name, _store):
     self.name = name
     self._client = client
     self._collection_accesses = {}
     self._store = _store or store.DatabaseStore()