question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PostgreSQL Array Columns

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
etimbergcommented, Oct 26, 2021

@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.

0reactions
collerekcommented, Feb 25, 2022

@rajaiswal Indeed we should close this, thanks for remainder 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found