Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database struct { Driver string `json:"driver"` Host string `json:"host"` Port int64 `json:"port"` Name string `json:"name"` User string `json:"user"` Password string `json:"password"` SSLMode string `json:"ssl_mode"` }
Database contains the fields needed to connect to a database.
func ParseConfig ¶
Parse will create a Database using the file at the given path.
func ParseGooseDatabase ¶
ParseGooseDatabase will parse a specific database name in the goose configuration file.
func ParseTestConfig ¶
ParseTestConfig varies from the default ParseConfig by defaulting to the Travis CI credentials if the given config returned nothing.
func (Database) Credentials ¶
Credentials with return a string of credentials appropriate for Go's sql.Open function
type GooseConfig ¶
GooseConfig is a representation of database configurations for the goose migration tool: https://bitbucket.org/liamstask/goose
Click to show internal directories.
Click to hide internal directories.