PostgreSQL Array Columns
See original GitHub issueI really like the Postgres feature of having array type columns. sqlAlchemy supports the PostgreSQL dialect refer: https://docs.sqlalchemy.org/en/14/dialects/postgresql.html?highlight=array#sqlalchemy.dialects.postgresql.ARRAY
It would be nice to use them with ormar like:
characteristics:list[str] = ormar.Array(element_type='String')
or something like that.
Until that is possible I will use JSON() but it seems to be an overkill
Considering the DRY Principle, this package is the way to go when using a Database for an API. Thank you for that
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Documentation: 15: 8.15. Arrays - PostgreSQL
PostgreSQL allows columns of a table to be defined as variable-length multidimensional arrays. Arrays of any built-in or user-defined base type, enum type, ......
Read more >PostgreSQL Array
PostgreSQL allows you to define a column to be an array of any valid data type including built-in type, user-defined type or enumerated...
Read more >PostgreSQL Array: Functions, Type, Example - Guru99
In PostgreSQL, we can define a column as an array of valid data types. The data type can be built-in, user-defined, or enumerated...
Read more >Using Arrays in PostgreSQL - Towards Data Science
With the Array PostgreSQL allows columns of a table to be defined as variable-length multidimensional arrays. Arrays of any built-in or user-defined base ......
Read more >Working with the Array Data Type in PostgreSQL
PostgreSQL gives the opportunity to define a column of a table as a variable length single or multidimensional array. Arrays of any built-in ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@collerek thanks for the tag. I will work on getting that PR reviewed and merged. I’m open to contributions if other features are needed. So far, I only built what we needed for our services.
@rajaiswal Indeed we should close this, thanks for remainder 😃