import typing as ty

from nepali_dictionary.common.db import Dictionary
from sqlmodel import Session, select


class SearchService:

    def search(self, query: str, session: ty.Type[Session], engine) -> ty.Optional[dict]:
        with session(engine) as s:
            statement = 