Skip to content

🐛: [RZP-260003]: update db connection script #3

@recursivezero

Description

@recursivezero

What happened?

currently we have db connection string in utils/__init__.py which is not a good practice, and this is running every time when we run any command.

Image

moreover, when we add and run poetry run clean command ; it is also giving erro because we have db code in init.py file

What did you expect to happen?

  • make db connection in db/connection.py and call this in main.py and fast api
  • check reference code in feature/RZS-260115 branch

Anything else we need to know?

Also we wanted to add poetry run clean or poetry run sample clean` command which clean all existing environment and reste everything; take code sample from feature/TZS-260115 branch again

What browsers are you seeing the problem on?

No response

Relevant log output

Contact Details

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions