Rewrote PreferenceStore.SaveOrUpdate to work on Postgres within a transaction

Этот коммит содержится в:
hmhealey
2015-10-08 10:52:20 -04:00
родитель a2517ee991
Коммит 8a7aa7f66f
2 изменённых файлов: 58 добавлений и 9 удалений

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

@@ -615,6 +615,8 @@ func decrypt(key []byte, cryptoText string) (string, error) {
// Interface for both gorp.DbMap and gorp.Transaction to allow code for one to be reused with the other
type Queryable interface {
Exec(query string, args ...interface{}) (dbsql.Result, error)
Insert(list ...interface{}) error
SelectInt(query string, args ...interface{}) (int64, error)
Update(list ...interface{}) (int64, error)
}