Versions in this module Expand all Collapse all v0 v0.0.1 May 9, 2019 Changes in this version + var DB *gorm.DB + func Close() + func EscapeLike(colVal string) string + func Init() + func NewDB() *gorm.DB + func RollBackIfPanic(db *gorm.DB) + type CategoryDao struct + DB *gorm.DB + func (dao *CategoryDao) CreateCategory(name string) *model.Category + func (dao *CategoryDao) FindAll() []model.Category + func (dao *CategoryDao) Save(name string) *model.Category + type FileDao struct + DB *gorm.DB + func (dao *FileDao) FindByCategoryID(session *gorm.DB, categoryID uint) []model.File + func (dao *FileDao) FindByFuzz(f model.FileDTO) []model.FileDTO + func (dao *FileDao) FindByID(id int) *model.File + func (dao *FileDao) FindByMD5(md5 string) *model.File + func (dao *FileDao) FindByName(name string) *model.File + func (dao *FileDao) Save(file *model.File)