sosedoff / pgweb

Cross-platform client for PostgreSQL databases
https://sosedoff.github.io/pgweb
MIT License
8.47k stars 716 forks source link

Store history in browser storage #706

Open rouge8 opened 6 months ago

rouge8 commented 6 months ago

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 commented 6 months ago

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

rouge8 commented 6 months ago

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

sosedoff commented 6 months ago

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 commented 6 months ago

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

rouge8 commented 6 months ago

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