Versions in this module Expand all Collapse all v0 v0.12.0 Mar 29, 2021 Changes in this version + func NewUserRepo(db Database) users.UserRepository v0.11.0 Jun 1, 2020 Changes in this version + func Connect(cfg Config) (*sqlx.DB, error) + func New(db Database) users.UserRepository + type Config struct + Host string + Name string + Pass string + Port string + SSLCert string + SSLKey string + SSLMode string + SSLRootCert string + User string + type Database interface + GetContext func(context.Context, interface{}, string, ...interface{}) error + NamedExecContext func(context.Context, string, interface{}) (sql.Result, error) + NamedQueryContext func(context.Context, string, interface{}) (*sqlx.Rows, error) + QueryRowxContext func(context.Context, string, ...interface{}) *sqlx.Row + func NewDatabase(db *sqlx.DB) Database