Skip to content
New issue

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

Add support for ORM and ODM models in faag-cli app generation #52

Open
pythonhubdev opened this issue Mar 23, 2023 · 0 comments
Open

Add support for ORM and ODM models in faag-cli app generation #52

pythonhubdev opened this issue Mar 23, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@pythonhubdev
Copy link
Collaborator

Description

Currently, the faag-cli tool does not support generating models for Object Relational Mapping (ORM) or Object Document Mapping (ODM) packages. This feature will allow users to choose between ORM and ODM models based on their preference and the requirements of their project.

ORM packages like SQL-Alchemy can be used for relational databases, while ODM packages like Mongoengine can be used for NoSQL databases like MongoDB. This feature will make it easier for users to generate the appropriate models for their chosen database technology.

For example, a user could run the following command to generate a FastAPI app with SQL-Alchemy ORM models:

faag generate --type fast --name test_app --orm true --package sqlalchemy

Alternatively, they could generate a FastAPI app with Mongoengine ODM models with the following command:

faag generate --type fast --name test_app --odm true --package mongoengine

By default, the ORM and ODM options would be set to false, allowing users to generate a generic template with a SQLite connection. This feature would also be useful for generating additional features in the faag-cli.

Proposed Changes

Add support for ORM and ODM models in the faag-cli tool, allowing users to generate the appropriate models for their chosen database technology.

Additional Context

This feature would greatly enhance the usability and flexibility of the faag-cli tool for developers using various database technologies.

@pythonhubdev pythonhubdev added this to the Faag-CLI 1.0.0 milestone Mar 23, 2023
@pythonhubdev pythonhubdev self-assigned this Mar 23, 2023
@pythonhubdev pythonhubdev added the enhancement New feature or request label Mar 23, 2023
@pythonhubdev pythonhubdev changed the title Support for ORM and ODM based models Add support for ORM and ODM models in faag-cli app generation Mar 23, 2023
@pythonhubdev pythonhubdev changed the title Add support for ORM and ODM models in faag-cli app generation Add support for ORM and ODM models in faag-cli app generation Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant