コード例 #1
0
ファイル: main.py プロジェクト: cfnyu/distributed_db
def main():
    """ Main entry point for the application """

    if validate_args():
        # Confirm time with professor
        transaction_manager = TransactionManager(LOGGER)
        parser = Parser(sys.argv[1], LOGGER)

        instruction = parser.get_instruction()
        while instruction:
            transaction_manager.execute(instruction)
            instruction = parser.get_instruction()