Source code for juham.database.jconsole

from juham.base.jdatabase import JDatabase


[docs] class JConsole(JDatabase): """Database interface that simply dumps the written records to stdout solely for testing and debugging purposes.""" _class_id = None def __init__(self, name="jconsole"): super().__init__(name)
[docs] def write(self, point): print(f"Table:{self.database}: {str(point)}")
[docs] @classmethod def register(cls): if cls._class_id is None: JDatabase.register() cls.initialize_class()