Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// DefaultPGURl is exported for testing purposes
DefaultPGURL = "postgres://edhgo:edhgodev@localhost:5432/edhgo?sslmode=disable"
)
Functions ¶
func NewDB ¶
NewDB returns a migrated app database or an error. If it is passed an empty string, it will attempt to connect to the default testing DB
func NewPostgres ¶
NewPostgres returns a migrated sql.DB with a Postgres database connection migdir is the relative path to the migrations directory.
Types ¶
Click to show internal directories.
Click to hide internal directories.