Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶
type Db struct {
Host, DbName, Port, User string
Instance *pgx.Conn
// contains filtered or unexported fields
}
Db struct is used to configuure database and store a Connection instance
func (*Db) SetPassword ¶
func (db *Db) SetPassword(f PasswordSetter) error
SetPassword sets the db password through passing a function which returns a string and an error
type PasswordSetter ¶ added in v1.1.0
PasswordSetter type along with func SetPassword enables setting password via env var, api or any other way.
Click to show internal directories.
Click to hide internal directories.