dal

package
v0.0.0-...-edab1ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitTran

func CommitTran(db *gorm.DB)

func Connect

func Connect(l *log.Logger) (*gorm.DB, error)

func DeleteFile

func DeleteFile(fileid int64, db *gorm.DB, l *log.Logger) (string, error)

func DeleteFiles

func DeleteFiles(files []int64, db *gorm.DB, l *log.Logger) (string, error)

func GetDupFilesByName

func GetDupFilesByName(finfos models.Files, db *gorm.DB, l *log.Logger) (*models.Files, error)

func GetFile

func GetFile(fileid int64, db *gorm.DB, l *log.Logger) (*models.File, error)

func LogConfig

func LogConfig(l *zl.Logger, lv gl.LogLevel) *gl.Interface

func Rollback

func Rollback(db *gorm.DB)

func SaveFiles

func SaveFiles(f *models.Files, db *gorm.DB, l *log.Logger) error

func SearchFilesByPartName

func SearchFilesByPartName(s string, page int, pagesize int, db *gorm.DB, l *log.Logger) (*models.Files, error)

func StartTran

func StartTran(l *log.Logger, db *gorm.DB) *gorm.DB

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL