I'm learning postgresql and just going through the docs. I'm at the section where they are talking about Views. I understand views as they are essentially query blocks (similar to functions in python) which I can call. I also understand when and why I would use them.
My confusion is with this sentence in the docs:
Views allow you to encapsulate the details of the structure of your tables, which might change as your application evolves, behind consistent interfaces
I'm not sure what that means. When I read that it encapsulates the details I thought it meant views are good for security purposes to hide queries over request.body.
Why are views good for when my application evolves behind consistent interfaces?