MCPcopy Create free account
hub / github.com/ipython/ipython / DummyDB

Class DummyDB

IPython/core/history.py:35–49  ·  view source on GitHub ↗

Dummy DB that will act as a black hole for history. Only used in the absence of sqlite

Source from the content-addressed store, hash-verified

33
34@undoc
35class 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

Callers 1

init_dbMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected