diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-05 00:55:17 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-05 00:55:17 -0400 |
commit | a641854cad6dddda551a2995c765e970f7cea8ba (patch) | |
tree | 9ed5c0e085ed7f31461f82a224856dc86a14a77b /models/models.go | |
parent | bb0bc0a240acf745001c1cb3f0f64c8fb8ab696b (diff) | |
download | gitea-a641854cad6dddda551a2995c765e970f7cea8ba.tar.gz gitea-a641854cad6dddda551a2995c765e970f7cea8ba.zip |
command dump
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 5 |
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) +} |