pgweb icon indicating copy to clipboard operation
pgweb copied to clipboard

Store history in browser storage

Open rouge8 opened this issue 1 year ago • 5 comments

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.

rouge8 avatar Jan 10 '24 17:01 rouge8

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

sosedoff avatar Jan 10 '24 18:01 sosedoff

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

rouge8 avatar Jan 10 '24 18:01 rouge8

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.

sosedoff avatar Jan 10 '24 18:01 sosedoff

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

rouge8 avatar Jan 10 '24 18:01 rouge8

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

rouge8 avatar Jan 10 '24 19:01 rouge8