sqlite

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSqlite

func GetSqlite() *gorm.DB

func SetSqlite

func SetSqlite()

Types

type YtdlpHistory

type YtdlpHistory struct {
	Id        int64          `gorm:"primaryKey;autoIncrement;comment:主键id"`
	Name      string         `gorm:"comment:视频名称"`
	Url       string         `gorm:"comment:视频链接"`
	CreatedAt time.Time      `gorm:"autoCreateTime"`
	UpdatedAt time.Time      `gorm:"autoUpdateTime"`
	DeletedAt gorm.DeletedAt `gorm:"index"`
}

func (*YtdlpHistory) ExistsByName

func (yt *YtdlpHistory) ExistsByName() (bool, error)

Check if a record exists with the same name

func (*YtdlpHistory) ExistsByUrl

func (yt *YtdlpHistory) ExistsByUrl() (bool, error)

Check if a record exists with the same URL

func (*YtdlpHistory) FindByFilename

func (yt *YtdlpHistory) FindByFilename() (bool, error)

根据自定义文件名判断是否下载过

func (*YtdlpHistory) FindByOriginURL

func (yt *YtdlpHistory) FindByOriginURL() (bool, error)

根据原始url判断是否下载过

func (*YtdlpHistory) InsertOne

func (yt *YtdlpHistory) InsertOne() (int64, error)

func (*YtdlpHistory) Sync

func (yt *YtdlpHistory) Sync()

Jump to

Keyboard shortcuts

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