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 for read-only columns (PostgreSQL Generated Columns) #351

Open
m-o-e opened this issue Nov 21, 2020 · 2 comments
Open

Support for read-only columns (PostgreSQL Generated Columns) #351

m-o-e opened this issue Nov 21, 2020 · 2 comments

Comments

@m-o-e
Copy link

m-o-e commented Nov 21, 2020

Postgres has a handy feature called generated columns. These are columns that can only be read but not be written.

Unfortunately they don't seem to work with Jennifer at the moment
(omitting them from the mapping doesn't work, neither does marking them as virtual).

Maybe it's possible with a custom converter?
(is there a way for a converter to completely strip the column from updates and inserts?)

Otherwise it would be nice to have support for readonly-columns at some point.
(not urgent for my use-case - just a "nice to have" feature request)

@imdrasil
Copy link
Owner

Unfortunately, currently Jennifer doesn't support generated columns. Added to the roadmap

@imdrasil
Copy link
Owner

FYI master branch received this functionality. It'll take some time to prepare new release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants