Moved saving multiple user preferences into a database transaction

Этот коммит содержится в:
hmhealey
2015-10-07 10:19:02 -04:00
родитель 5832232b6d
Коммит a6cd2a7961
5 изменённых файлов: 152 добавлений и 56 удалений

Просмотреть файл

@@ -612,3 +612,9 @@ func decrypt(key []byte, cryptoText string) (string, error) {
return fmt.Sprintf("%s", ciphertext), nil
}
// Interface for both gorp.DbMap and gorp.Transaction to allow code for one to be reused with the other
type Queryable interface {
Insert(list ...interface{}) error
Update(list ...interface{}) (int64, error)
}