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

About Views #103

Closed
tmendesilva opened this issue Apr 15, 2021 · 9 comments
Closed

About Views #103

tmendesilva opened this issue Apr 15, 2021 · 9 comments

Comments

@tmendesilva
Copy link

Can I make schema.json using a VIEW as "table", or there some schema generator to make this JSON analyzing tables used on my VIEW query?

@toluaina
Copy link
Owner

Views are currently not supported yet. Some work has been done but its still WIP.

@tmendesilva
Copy link
Author

Congrats for your job, i'm using to replace materialized views. I will try simulate views on schema, tnks.

@toluaina
Copy link
Owner

Thanks I will look at this shortly. Don't have an ETA yet sorry.

@yangyaofei
Copy link
Contributor

@toluaina hi, are you still working with this? I have a table with tree-like struct and I want get a path for every item for searching. Since there is no such method for recursive retrieving I create a recursive view to achieve that.

But , I found view cannot be synced when change the data.

Can you tell me how to make view work? I can implement it if I can.

@toluaina
Copy link
Owner

I haven't made much progress on this sorry.
One caveat about views is that they need to be refreshed manually.

@yangyaofei
Copy link
Contributor

@toluaina yes, i have try it a little, as far as I upderstand because of there is no such thing like permarary key, so they cannot make the trigger run.

In My case, I create a trigger to make that view as a real table.

Thank you for your reply.

toluaina added a commit that referenced this issue May 12, 2022
@toluaina
Copy link
Owner

Sorry for the long wait. Support for views is detailed here

@toluaina
Copy link
Owner

view are finally supported.

@Cognitus-Stuti
Copy link

Are only materialized views supported? I still am getting the issue of it looking for the xmin column

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

4 participants