Update database.go

This commit is contained in:
Dominic Renner 2019-03-06 18:29:15 +01:00 committed by GitHub
parent 4ba331fbfd
commit 96a509384d

View file

@ -34,8 +34,8 @@ type Database struct {
Message *MessageQuery
}
func New(file string) (*Database, error) {
conn, err := sql.Open("postgres", file)
func New(dbType string, uri string) (*Database, error) {
conn, err := sql.Open(dbType, uri)
if err != nil {
return nil, err
}