Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
Connection encodes SQL connection data.
func ConnectionFromEnv ¶
func ConnectionFromEnv(prefix string) (Connection, error)
ConnectionFromEnv returns Connection from env variables
func (*Connection) Connect ¶
func (c *Connection) Connect() (*sql.DB, error)
Connect tries to connect to postgres until it succeeds.
func (*Connection) String ¶
func (c *Connection) String() string
Click to show internal directories.
Click to hide internal directories.