Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { TemplateHash string `json:"templateHash"` Config DatabaseConfig `json:"config"` }
type DatabaseConfig ¶
type DatabaseConfig struct { Host string `json:"host"` Port int `json:"port"` Username string `json:"username"` Password string `json:"password"` Database string `json:"database"` AdditionalParams map[string]string `json:"additionalParams,omitempty"` // Optional additional connection parameters mapped into the connection string }
func (DatabaseConfig) ConnectionString ¶
func (c DatabaseConfig) ConnectionString() string
Generates a connection string to be passed to sql.Open or equivalents, assuming Postgres syntax
type TemplateDatabase ¶
type TemplateDatabase struct {
Database `json:"database"`
}
type TestDatabase ¶
Click to show internal directories.
Click to hide internal directories.