Versions in this module Expand all Collapse all v1 v1.0.0 Jun 15, 2020 Changes in this version + func MigrateDB(db *sql.DB, migrationsPath string) error + func NewDb(configs ...ConfigOption) (*sql.DB, error) + type ConfigOption func(configBuilder) + func Credentials(username, password string) ConfigOption + func DbName(dbName string) ConfigOption + func HostAndPort(hostname string, port int) ConfigOption + func SslDisabled() ConfigOption + type TodosRepository struct + func NewTodosRepository(db *sql.DB) *TodosRepository + func (repository *TodosRepository) GetAll() ([]todo.Todo, error)