(self, data)
| 171 | return self._connection |
| 172 | |
| 173 | def encode(self, data): |
| 174 | if self.serializer == 'bson': |
| 175 | # mongodb handles serialization |
| 176 | return data |
| 177 | payload = super().encode(data) |
| 178 | |
| 179 | # serializer which are in a unsupported format (pickle/binary) |
| 180 | if self.serializer in BINARY_CODECS: |
| 181 | payload = Binary(payload) |
| 182 | return payload |
| 183 | |
| 184 | def decode(self, data): |
| 185 | if self.serializer == 'bson': |
no outgoing calls
no test coverage detected