Dummy DB that will act as a black hole for history. Only used in the absence of sqlite
| 33 | |
| 34 | @undoc |
| 35 | class DummyDB(object): |
| 36 | """Dummy DB that will act as a black hole for history. |
| 37 | |
| 38 | Only used in the absence of sqlite""" |
| 39 | def execute(*args, **kwargs): |
| 40 | return [] |
| 41 | |
| 42 | def commit(self, *args, **kwargs): |
| 43 | pass |
| 44 | |
| 45 | def __enter__(self, *args, **kwargs): |
| 46 | pass |
| 47 | |
| 48 | def __exit__(self, *args, **kwargs): |
| 49 | pass |
| 50 | |
| 51 | |
| 52 | @decorator |