(self)
| 110 | pass |
| 111 | |
| 112 | async def db_delete(self) -> None: |
| 113 | await self.close() |
| 114 | try: |
| 115 | os.remove(self.filename) |
| 116 | except FileNotFoundError: # pragma: nocoverage |
| 117 | pass |
| 118 | except OSError as e: |
| 119 | if e.errno != 22: # fix: "sqlite://:memory:" in Windows |
| 120 | raise e |
| 121 | |
| 122 | def acquire_connection(self) -> ConnectionWrapper: |
| 123 | return ConnectionWrapper(self._lock, self) |