aboutsummaryrefslogtreecommitdiff
path: root/models/models.go
diff options
context:
space:
mode:
authorlunnyxiao <xiaolunwen@gmail.com>2014-08-08 13:51:43 +0800
committerlunnyxiao <xiaolunwen@gmail.com>2014-08-08 13:51:43 +0800
commit7c7014262bdf90880826e6e6cc802bdab300b5ae (patch)
treea3b9803b8cb8ecc23517e73c1d0cdf73dcb213d5 /models/models.go
parent57f6ec672ab059c57689a45c7f657923718e62bf (diff)
parent9d5c0c80a4984acc1a42da8360a712e4f5f615a0 (diff)
Merge branch 'dev' of github.com:gogits/gogs into dev
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index 31509ed3..af9529f4 100644
--- a/models/models.go
+++ b/models/models.go
@@ -165,6 +165,10 @@ func GetStatistic() (stats Statistic) {
return
}
+func Ping() error {
+ return x.Ping()
+}
+
// DumpDatabase dumps all data from database to file system.
func DumpDatabase(filePath string) error {
return x.DumpAllToFile(filePath)