####################
Private functions
####################
.. _moobius.database.storage.get_engine._hit:
get_engine._hit
---------------------------------------------------------------------------------------------------------------------
.. raw:: html
* **get_engine._hit**(matches)
.. raw:: html
* __matches:__ List of matches.
.. raw:: html
* The if the engine is one of those matches.
.. raw:: html
* (this function does not raise any notable errors)
.. _moobius.database.storage.CachedDict.__getitem__:
CachedDict.__getitem__
---------------------------------------------------------------------------------------------------------------------
Overrides dict-like usages of the form: "v = d['my_key']" to query from the database...
.. raw:: html
* **CachedDict.__getitem__**(self, key)
.. raw:: html
* __key:__ Key and.
.. raw:: html
* The value.
.. raw:: html
* A KeyError if strict_mode is True and the key is not found.
.. _moobius.database.storage.CachedDict.__setitem__:
CachedDict.__setitem__
---------------------------------------------------------------------------------------------------------------------
Overrides dict-like usages of the form: "d['my_key'] = v" to save to the database.
For a JSONDatabase, this will save the updated json to a file..
.. raw:: html
* **CachedDict.__setitem__**(self, key, value)
.. raw:: html
* __key:__ Key.
* __value:__ Value.
.. raw:: html
* None.
.. raw:: html
* (this function does not raise any notable errors)
.. _moobius.database.storage.CachedDict.__delitem__:
CachedDict.__delitem__
---------------------------------------------------------------------------------------------------------------------
Overrides dict-like usages of the form: "del d['my_key']" to delete a key from the database.
For a JSONDatabase, this will save the updated json to a file..
.. raw:: html
* **CachedDict.__delitem__**(self, key)
.. raw:: html
* __key:__ Key.
.. raw:: html
* None.
.. raw:: html
* (this function does not raise any notable errors)
.. _moobius.database.storage.CachedDict.__str__:
CachedDict.__str__
---------------------------------------------------------------------------------------------------------------------
The string output function for debugging.
.. raw:: html
* **CachedDict.__str__**(self)
.. raw:: html
* __(this class constructor accepts no arguments):__
.. raw:: html
* The easy-to-read string summary.
.. raw:: html
* (this function does not raise any notable errors)
.. _moobius.database.storage.CachedDict.__repr__:
CachedDict.__repr__
---------------------------------------------------------------------------------------------------------------------
The string output function for debugging.
.. raw:: html
* **CachedDict.__repr__**(self)
.. raw:: html
* __(this class constructor accepts no arguments):__
.. raw:: html
* The easy-to-read string summary.
.. raw:: html
* (this function does not raise any notable errors)
.. _moobius.database.storage.MoobiusStorage.__str__:
MoobiusStorage.__str__
---------------------------------------------------------------------------------------------------------------------
The string output function for debugging.
.. raw:: html
* **MoobiusStorage.__str__**(self)
.. raw:: html
* __(this class constructor accepts no arguments):__
.. raw:: html
* The easy-to-read string summary.
.. raw:: html
* (this function does not raise any notable errors)
.. _moobius.database.storage.MoobiusStorage.__repr__:
MoobiusStorage.__repr__
---------------------------------------------------------------------------------------------------------------------
The string output function for debugging.
.. raw:: html
* **MoobiusStorage.__repr__**(self)
.. raw:: html
* __(this class constructor accepts no arguments):__
.. raw:: html
* The easy-to-read string summary.
.. raw:: html
* (this function does not raise any notable errors)
####################
Private attributes
####################
get_engine._hit
get_engine._hit
get_engine._hit