@@ -0,0 +1,795 @@
+# stdlib%0Afrom typing import Any%0Afrom typing import List%0A%0A# third party%0Afrom sqlalchemy.engine import Engine%0Afrom sqlalchemy.orm import sessionmaker%0A%0A# relative%0Afrom ..node_table.ledger import Ledger%0A%0A# from ..exceptions import SetupNotFoundError%0Afrom .database_manager import DatabaseManager%0A%0A%0Aclass LedgerManager(DatabaseManager):%0A%0A    schema = Ledger%0A%0A    def __init__(self, database: Engine) -%3E None:%0A        super().__init__(db=database, schema=LedgerManager.schema)%0A    %0A    def __setitem__(self, key, value):%0A        if super().contain(entity_name=key):%0A            super().delete(entity_name=key)%0A        super().register(value)%0A%0A    def __getitem__(self, key):%0A        if super().contain(entity_name=key):%0A            super().first(entity_name=key)%0A        else:%0A            return None%0A

Create new node manager: LedgerManager