Skip to content

Database generator - #5

Merged
PenguinBoi12 merged 2 commits into
mainfrom
database-generator
Jul 31, 2026
Merged

Database generator#5
PenguinBoi12 merged 2 commits into
mainfrom
database-generator

Conversation

@PenguinBoi12

@PenguinBoi12 PenguinBoi12 commented Feb 28, 2025

Copy link
Copy Markdown
Contributor

This PR aim to add the possibility to skip the database generation when creating a new project. Along those base features, major refactor have been brought to the application.py and config.py to support this feature.

When using the option --no-database, the project will not generate the following :

  • db directory
  • database configuration in config.py

The database can be added later on by using grace generate database.

from logging import info


class DatabaseGenerator(Generator):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add optional instructions when added later on

Add the following to your `config.py`:
    
    [database]
    config = database.cfg

@PenguinBoi12
PenguinBoi12 merged commit 4697fe3 into main Jul 31, 2026
2 checks passed
@PenguinBoi12
PenguinBoi12 deleted the database-generator branch July 31, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant