Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { Adapter string `json:"adapter"` Host string `json:"host"` Port int `json:"port"` Username string `json:"username"` Password string `json:"password"` Database string `json:"database"` SSLMode string `json:"sslmode"` }
func NewConnectionDataFromConfig ¶
func NewConnectionDataFromConfig(c *config.Config) *Connection
func (*Connection) GenerateAdapterDBURL ¶
func (c *Connection) GenerateAdapterDBURL() (*dburl.URL, error)
func (*Connection) GenerateAdapterDSN ¶
func (c *Connection) GenerateAdapterDSN() (string, error)
Click to show internal directories.
Click to hide internal directories.