-
Notifications
You must be signed in to change notification settings - Fork 747
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
QueryStore on database level #690
Comments
Yes, queries are pulled from the local files, so its up to the use to provide what they need.
|
Thanks for your response. To answer your questions:
Creating a P.o.C. for this feature, I ran into some issues:
Do you have some suggestions on refining this issues? |
I would advise against creating
Since you already use Connect Backend feature, you can explore an alternative source for the queries - HTTP API. So think of it as a Query Backend: you provide a pgweb-compatible endpoint and pgweb can read and write queries to it, just like it would to a postgres store. IMO it'll work great for your use case: query store is decoupled from any db engine, hidden away from consumers and easy to integrate with since you already provide HTTP endpoint. |
Hi I didn't understand this reply, apologies if I have any misunderstandings here. @sosedoff Do you mean to say the queries we write are stored in local files, instead of localStorage? Is there a way to enable persistent storage in docker to support persisting our queries in a file? |
I'm thinking of a way to save and load queries to and from a table in the database. From how I understand it at the moment it is only possible to read queries from a folder on the file system. Is it an idea to read queries from a table in the database?
To implement this I'm thinking about using the following approach:
The first four options are pretty basic to implement, but I'm struggling at the fifth option. Does anyone have some suggestion on how to inject the correct type?
The text was updated successfully, but these errors were encountered: