mysql

package
v0.0.0-...-5cada86 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*gorm.DB
}

func NewDb

func NewDb() (*DB, error)

func (DB) AddSong

func (db DB) AddSong(song domain.Song) error

func (DB) DeleteSong

func (db DB) DeleteSong(songId string) error

func (DB) GetSongById

func (db DB) GetSongById(songId string) (domain.Song, error)

func (*DB) InitTables

func (db *DB) InitTables() error

func (DB) ListAllSong

func (db DB) ListAllSong() ([]domain.Song, error)

func (DB) ListSongByMode

func (db DB) ListSongByMode(mode string, modeDetail string) ([]domain.Song, error)

Jump to

Keyboard shortcuts

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