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 a method to the Array column for getting the number of dimensions of the array #955

Closed
dantownsend opened this issue Mar 15, 2024 · 0 comments · Fixed by #956
Closed
Labels
enhancement New feature or request

Comments

@dantownsend
Copy link
Member

In Piccolo API, and Piccolo Admin we need an easy way to get the number of dimensions of an array column, because we have to treat arrays with 2 or more dimensions differently.

For example:

>>> Array(Varchar())._get_dimensions()
1

>>> Array(Array(Varchar()))._get_dimensions()
2
@dantownsend dantownsend added the enhancement New feature or request label Mar 15, 2024
@dantownsend dantownsend added this to To do in Enhancements via automation Mar 15, 2024
Enhancements automation moved this from To do to Done Mar 19, 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
1 participant