db

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *gorm.DB

Functions

func Init

func Init()

func InitDatabase

func InitDatabase() (*gorm.DB, string)

Use when creating database for the first time, see the command `setup.go`

func SearchDatabase

func SearchDatabase() (string, error)

Types

type Anime

type Anime struct {
	ID          uint   `gorm:"primarykey"`
	Title       string `gorm:"unique;not null"`
	Url         string `gorm:"not null"`
	Description string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

Jump to

Keyboard shortcuts

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