We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The minos cli must have the following command
minos queryservice set repository
this command must ask:
the cli would create the following files
queries/models.py
from sqlalchemy.orm import declarative_base Base = declarative_base()
queries/repository.py
from minos.common import MinosSetup, MinosConfig from sqlalchemy import create_engine from src.queries.models import Base class QueryServiceRepository(MinosSetup): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.engine = create_engine({{ THE URL DATABASE }}) async def _setup(self) -> None: Base.metadata.create_all(self.engine) @classmethod def _from_config(cls, *args, config: MinosConfig, **kwargs) -> ProductQueryRepository: return cls(*args, **(config.query_repository._asdict()) | kwargs)
the CLI must update the config.yml as well
... query: database: database_choosen_by_the_dev_db user: postgres password: "" host: localhost port: 5432
And must modify the plkaybooks/create-databse.yaml adding the following information
- name: Create Query Database import_playbook: ../../../external/postgres/playbooks/create-database.yaml vars: db_name: database_choosen_by_the_dev_db
The text was updated successfully, but these errors were encountered:
- Updated release version.
ca48bda
issue #61
Merge pull request #66 from minos-framework/issue-61-add-query-service
c6c6e70
#61 - Updated release version.
albamig
No branches or pull requests
The minos cli must have the following command
minos queryservice set repository
this command must ask:
the cli would create the following files
queries/models.py
queries/repository.py
the CLI must update the config.yml as well
And must modify the plkaybooks/create-databse.yaml adding the following information
The text was updated successfully, but these errors were encountered: