diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-10-08 10:52:20 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-10-13 09:42:26 -0400 |
commit | 8a7aa7f66f8f244ac17eda54b2a63b9538b55435 (patch) | |
tree | 8d28fc73255ef94ad2ac501cbbc29a7f510cec15 /store/sql_store.go | |
parent | a2517ee991df84803ca508b556910e543c535c1d (diff) | |
download | chat-8a7aa7f66f8f244ac17eda54b2a63b9538b55435.tar.gz chat-8a7aa7f66f8f244ac17eda54b2a63b9538b55435.tar.bz2 chat-8a7aa7f66f8f244ac17eda54b2a63b9538b55435.zip |
Rewrote PreferenceStore.SaveOrUpdate to work on Postgres within a transaction
Diffstat (limited to 'store/sql_store.go')
-rw-r--r-- | store/sql_store.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/store/sql_store.go b/store/sql_store.go index f8c585979..c31515a44 100644 --- a/store/sql_store.go +++ b/store/sql_store.go @@ -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) } |