Melkeydev / go-blueprint

Go-blueprint allows users to spin up a quick Go project using a popular framework
https://docs.go-blueprint.dev/
MIT License
5.81k stars 333 forks source link

[Feature Request] Enhance Subs Args `--driver` (Database) for Multiple Databases #235

Closed H0llyW00dzZ closed 5 months ago

H0llyW00dzZ commented 6 months ago

Tell us about your feature request

Currently, the --driver argument for the subs command only supports a single database. it would be beneficial to implement support for multiple databases within the --driver argument.

Example:

For instance, the command could be used as follows:

go-blueprint create --name gopher-project --framework fiber --driver mysql-redis

This would allow gopher to specify multiple databases separated by commas or hyphen.

Benefits:

Supporting multiple databases through the --driver argument would provide a better gopher experience and more flexibility when creating projects with go-blueprint. It would enable gophers to easily set up projects with different database combinations based on their requirements.

Disclaimer

Ujstor commented 6 months ago

@H0llyW00dzZ This would be very interesting if you could implement SQL and Redis databases in the cache configuration for advanced flag.

Blueprint core, we will leave it as it is, but additional features can be implemented as AF.

Now my question is, can this also be testable? An endpoint or any other kind of test that can give feedback to the user?

H0llyW00dzZ commented 6 months ago

@H0llyW00dzZ This would be very interesting if you could implement SQL and Redis databases in the cache configuration for advanced flag.

Blueprint core, we will leave it as it is, but additional features can be implemented as AF.

Now my question is, can this also be testable? An endpoint or any other kind of test that can give feedback to the user?

@Ujstor I'm not sure about the testability because even though it's possible to write a test, it might be difficult and challenging due to the need for credentials and setting up a local server just for testing connect into database.

H0llyW00dzZ commented 6 months ago

basically not worthy testable for database

Ujstor commented 5 months ago

There is a chance that we will implement models and sample data insertion into the database, with Goose migrations. If this is implemented, then there will be a way to showcase and test the cache database configuration

Melkeydev commented 5 months ago

We spoke about this - and as of right now we dont think we want to include a niche feature like this in blueprint!