(self, name: str)
| 206 | return hash_path_stem(name) % self.num_shards |
| 207 | |
| 208 | def _db_for(self, name: str) -> sqlite3.Connection: |
| 209 | if not self.dbs: |
| 210 | raise FileNotFoundError() |
| 211 | return self.dbs[self._shard_index(name)] |
| 212 | |
| 213 | def _query(self, name: str, field: str) -> Any: |
| 214 | # Raises FileNotFound for consistency with the file system version |
no test coverage detected