Add bookmark dropdown to connection settings ui

This commit is contained in:
Dan Sosedoff
2014-12-06 20:04:32 -06:00
parent d33fb4c9ca
commit 6ceb5fc5ed
5 changed files with 608 additions and 512 deletions

View File

@@ -13,10 +13,11 @@ import (
type Bookmark struct {
Url string `json:"url"` // Postgres connection URL
Host string `json:"host"` // Server hostname
Port int `json:"port"` // Server port
Port string `json:"port"` // Server port
User string `json:"user"` // Database user
Password string `json:"password"` // User password
SslMode string `json:"ssl_mode"` // Connection SSL mode
Database string `json:"database"` // Database name
Ssl string `json:"ssl"` // Connection SSL mode
}
func readServerConfig(path string) (Bookmark, error) {