todo/__init__.py
def create_Service(log):
    """Injects db connection and sets up service

    Args:
        db (object): Database

    Returns:
        object: ToDo Handler
    """
    todo_repository = Repository(Entity, log)
    todo_service = Service(todo_repository, log, Todo)
    return todo_service
Injects db connection and sets up service

    Args:
        db (object): Database

    Returns:
        object: ToDo Handler
    
Injects db connection and sets up service
Injects db connection and sets up service
def create_Service(log):
    todo_repository = Repository(Entity, log)
    todo_service = Service(todo_repository, log, Todo)
    return todo_service
def create_Service ( log ) : todo_repository = Repository ( Entity , log ) todo_service = Service ( todo_repository , log , Todo ) return todo_service
Injects db connection and sets up service
Injects db connection and sets up service
"""Injects db connection and sets up service

    Args:
        db (object): Database

    Returns:
        object: ToDo Handler
    """
None
object
log
db
None