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

Bookmark server connections #70

Closed
sosedoff opened this issue Dec 2, 2014 · 1 comment
Closed

Bookmark server connections #70

sosedoff opened this issue Dec 2, 2014 · 1 comment

Comments

@sosedoff
Copy link
Owner

sosedoff commented Dec 2, 2014

Another great addition to the pgweb could be "bookmarked" connections. This will provide a way to
quickly server connection settings. Most native database managers do that and its very helpful.

Few options to consider:

Store bookmarks in cookie/localstorage

  • Pros: easy implementations
  • Cons: no real persistence

Store bookmarks in a local file

File could be something like ~/.pgweb_bookmarks. Not sure about how would this work on
Windows machines. As for file format, it could be either YAML or TOML. Im leaning towards
TOML since it has format very similar to INI files. However, JSON does really make sense to use,
its consumed by browser but it does not have great readability.

  • Pros: opens doors for more customizations, easy implementation
  • Cons: syntax/formatting

Proposed file format (TOML):

# If url is defined it takes precedence
url = "postgres://..."

# Regular server connection settings
host = "localhost"
port = 5432
user = "username"
database = "dbname"
ssl_mode = "disable"

Would like to get some feedback if anyone is interested.

@sosedoff
Copy link
Owner Author

TOML-based bookmarks are implemented in master as read-only.
Wiki page: https://github.com/sosedoff/pgweb/wiki/Server-bookmarks

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

1 participant