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
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()
def __init__(self, client, name, _store): self.name = name self._client = client self._collection_accesses = {} self._store = _store or store.DatabaseStore()