summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index 059435f15f..09b530ced1 100644
--- a/models/models.go
+++ b/models/models.go
@@ -160,3 +160,8 @@ func GetStatistic() (stats Statistic) {
stats.Counter.Release, _ = orm.Count(new(Release))
return
}
+
+// DumpDatabase dumps all data from database to file system.
+func DumpDatabase(filePath string) error {
+ return orm.DumpAllToFile(filePath)
+}