sql

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEngine

func GetEngine() *gorm.DB

func SetEngine

func SetEngine()

Types

type Whisper

type Whisper struct {
	gorm.Model
	ID        uint   `gorm:"primaryKey;autoIncrement;comment:'主键'"`
	Name      string `gorm:"name	;comment:'文件名'"`
	No        string `gorm:"no;comment:'字幕序号'"`
	Duration  string `gorm:"duration;comment:'时间段'"`
	Srt       string `gorm:"原文内容"`
	CreatedAt time.Time
}

func (*Whisper) FindOneByName

func (w *Whisper) FindOneByName() *gorm.DB

func (*Whisper) SetOne

func (w *Whisper) SetOne() *gorm.DB

Jump to

Keyboard shortcuts

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