()
| 23 | |
| 24 | |
| 25 | def db() -> AgnosticDatabase: |
| 26 | global _db |
| 27 | if _db is None: |
| 28 | if "IN_MEMORY_DB" in os.environ and os.environ["IN_MEMORY_DB"] != str("0"): |
| 29 | _db = create_in_memory_db_client() |
| 30 | else: |
| 31 | _db = create_db_client() |
| 32 | return _db |
| 33 | |
| 34 | |
| 35 | async def reset_db(): |
no test coverage detected