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 Get Columns to for Model #603

Closed
JarriqTheTechie opened this issue Feb 23, 2022 · 0 comments · Fixed by #604
Closed

Add Get Columns to for Model #603

JarriqTheTechie opened this issue Feb 23, 2022 · 0 comments · Fixed by #604
Labels
enhancement A feature that exists, works as intended but needs to be improved feature request A feature that does not yet exist but will be a good addition to the library

Comments

@JarriqTheTechie
Copy link
Contributor

Describe the feature as you'd like to see it
Add the ability to get a list of column names from the model.

What do we currently have to do now?
There is currently no way to do this.

Additional context
New feature should work like.

`class Post(Model):
pass

columns = Post.get_columns()
`

In the above case it would return all columns that would be returned from "SELECT * FROM Posts"
In other cases if selects is defined on the model it would return those columns.

Is this a breaking change? No

@JarriqTheTechie JarriqTheTechie added the enhancement A feature that exists, works as intended but needs to be improved label Feb 23, 2022
@josephmancuso josephmancuso added the feature request A feature that does not yet exist but will be a good addition to the library label Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature that exists, works as intended but needs to be improved feature request A feature that does not yet exist but will be a good addition to the library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants