summaryrefslogtreecommitdiffstats
path: root/db.go
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-08-07 23:16:48 -0700
committerraylu <raylu@mixpanel.com>2011-08-07 23:16:48 -0700
commitf6b3401e74d19b7f66d3edf3f84f667001972cea (patch)
tree35f3bb4025876a036105c7f09d89dfab30a03636 /db.go
parent602c45ac1086b4ace9e99edba4c9cfd1f142f016 (diff)
downloadaudioaxis-f6b3401e74d19b7f66d3edf3f84f667001972cea.tar.xz
well that was silly; fix add and remove
Diffstat (limited to 'db.go')
-rw-r--r--db.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/db.go b/db.go
index 8ded5ec..b980f45 100644
--- a/db.go
+++ b/db.go
@@ -68,3 +68,11 @@ func getpid(id string) int {
}
return pid
}
+
+func execute(sql string) os.Error {
+ err := db.Query(sql)
+ if err != nil {
+ log.Println(err)
+ }
+ return err
+}