.. _moobius_database_null_database:
###################################################################################
moobius.database.null_database
###################################################################################
******************************
Module-level functions
******************************
(No module-level functions)
************************************
Class NullDatabase
************************************
The NullDatabase is like /dev/null; nothing is ever stored.
Get returns (True, None) and set/delete return (True, "").
.. _moobius.database.null_database.NullDatabase.get_value:
NullDatabase.get_value
---------------------------------------------------------------------------------------------------------------------
.. raw:: html
* **NullDatabase.get_value**(self, key)
.. raw:: html
* __key:__ Key.
.. raw:: html
* (True, None).
.. raw:: html
* (this function does not raise any notable errors)
.. _moobius.database.null_database.NullDatabase.set_value:
NullDatabase.set_value
---------------------------------------------------------------------------------------------------------------------
.. raw:: html
* **NullDatabase.set_value**(self, key, value)
.. raw:: html
* __key:__ Key.
* __value:__ Value.
.. raw:: html
* (True, '').
.. raw:: html
* (this function does not raise any notable errors)
.. _moobius.database.null_database.NullDatabase.delete_key:
NullDatabase.delete_key
---------------------------------------------------------------------------------------------------------------------
.. raw:: html
* **NullDatabase.delete_key**(self, key)
.. raw:: html
* __key:__ Key.
.. raw:: html
* (True, '').
.. raw:: html
* (this function does not raise any notable errors)
.. _moobius.database.null_database.NullDatabase.all_keys:
NullDatabase.all_keys
---------------------------------------------------------------------------------------------------------------------
.. raw:: html
* **NullDatabase.all_keys**(self)
.. raw:: html
* __(this class constructor accepts no arguments):__
.. raw:: html
* The [].
.. raw:: html
* (this function does not raise any notable errors)
Class attributes
--------------------
NullDatabase.DatabaseInterface
**********************
Internals
**********************
.. toctree::
:maxdepth: 2
moobius.database.null_database_internal_attrs