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

Store history in browser storage #706

Open
rouge8 opened this issue Jan 10, 2024 · 5 comments
Open

Store history in browser storage #706

rouge8 opened this issue Jan 10, 2024 · 5 comments

Comments

@rouge8
Copy link

rouge8 commented Jan 10, 2024

I would like to be able to store the query history in the History tab in browser storage instead of in the server memory. This would make it per-user and persist after restarting pgweb.

@sosedoff
Copy link
Owner

If you're concerned about history leaking across users, you can run pgweb in multi-session mode with --sessions flag.

@rouge8
Copy link
Author

rouge8 commented Jan 10, 2024

Oh nice, I'll do that. It'd still be nice to save in the browser storage so it persists across restarts though.

@sosedoff
Copy link
Owner

Yea this kind of request has been on the radar for a while, but i dont have any ETA for when its going to be available.

@rouge8
Copy link
Author

rouge8 commented Jan 10, 2024

Yeah, I understand. Also thanks for pgweb! It's exactly what I was looking for 😀

@rouge8
Copy link
Author

rouge8 commented Jan 10, 2024

Oh, it looks like setting PGWEB_SESSIONS=1 is for multiple database connections, so it ignores the --url option...

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