Update to use pg/v10
This commit is contained in:
parent
94c75b1d2a
commit
1536d97d8d
13 changed files with 449 additions and 98 deletions
|
@ -81,7 +81,8 @@ func (db *pgDB) AddRawUser(name string, hpass []byte, salt []byte, role string)
|
|||
Salt: salt,
|
||||
Role: role,
|
||||
}
|
||||
return db.sql.Insert(&u)
|
||||
_, err := db.sql.Model(&u).Insert()
|
||||
return err
|
||||
}
|
||||
|
||||
func (db *pgDB) GetRole(name string) (string, error) {
|
||||
|
|
Reference in a new issue