summaryrefslogtreecommitdiffstats
path: root/store/sql_store.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-08 10:52:20 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-13 09:42:26 -0400
commit8a7aa7f66f8f244ac17eda54b2a63b9538b55435 (patch)
tree8d28fc73255ef94ad2ac501cbbc29a7f510cec15 /store/sql_store.go
parenta2517ee991df84803ca508b556910e543c535c1d (diff)
downloadchat-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.go2
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)
}