Skip to content

How to best implement read-only entities? (aka: SQL Views) #3150

Answered by schnz
schnz asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @a8m ,

Thanks for the quick response and your suggestion with hooks & policies. I guess I won't need them for now, since I am the only developer on the project and I am aware of the fact that some entities are backed by a db view.

Regarding migrations: I primarily rely on automatic migrations at the time. But I also already tried using versioned migrations with Altas. I am ready to use whatever tooling allows me to deal with the issue. When I tried Atlas, I couldn't get it to work either, because it also doesn't support views. If you have any advice, I am happy to hear it. Thanks!

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@a8m
Comment options

@schnz
Comment options

Answer selected by schnz
Comment options

You must be logged in to vote
1 reply
@a8m
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants