command dump

This commit is contained in:
Unknown committed 2014-05-05 00:55:17 -04:00
1 parent bb0bc0a240
commit a641854cad
7 files changed
+43 -28

No files matched your search

+5
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)
}