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

Support array types via the cli #1099

Open
MatzHilven opened this issue Dec 23, 2024 · 0 comments
Open

Support array types via the cli #1099

MatzHilven opened this issue Dec 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@MatzHilven
Copy link

Feature Request

Is your feature request related to a problem? Please describe.

SeaORM supports array types for postgres, the loco cli currently doesn't. I've been manually updating the migration files after generating sparse models. It would be nice to have the ability to generate models with array types directly via the cli.

Describe the solution you'd like

An addition of the following kind to the cli:

cargo loco generate model movies title:string actors:[string]

Where [string] can be all possible ColumnTypes

@MatzHilven MatzHilven added the enhancement New feature or request label Dec 23, 2024
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