trigram indexes

This commit is contained in:
Las Zenow 2017-03-23 11:13:39 +00:00
parent b62b303995
commit 42ccf52718
3 changed files with 67 additions and 40 deletions

View file

@ -36,10 +36,10 @@ func (db *pgDB) AddUser(name string, pass string) error {
log.Error("Error hashing password: ", err)
return errors.New("An error happen storing the password")
}
return db.AddRawUser(name, hpass, salt, "")
return db.addRawUser(name, hpass, salt, "")
}
func (db *DB) AddRawUser(name string, hpass []byte, salt []byte, role string) error {
func (db *pgDB) addRawUser(name string, hpass []byte, salt []byte, role string) error {
u := user{
Username: name,
Password: hpass,