command dump

This commit is contained in:
Unknown 2014-05-05 00:55:17 -04:00
parent bb0bc0a240
commit a641854cad
7 changed files with 43 additions and 28 deletions

View file

@ -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)
}