database

package
v0.0.0-...-ef69a7e Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() (*sql.DB, error)

Types

type AlbumRepository

type AlbumRepository struct {
	Db *sql.DB
}

func NewAlbumRepository

func NewAlbumRepository(db *sql.DB) *AlbumRepository

func (*AlbumRepository) Delete

func (repo *AlbumRepository) Delete(id string) error

func (*AlbumRepository) FindMany

func (repo *AlbumRepository) FindMany() ([]entity.Album, error)

func (*AlbumRepository) FindOne

func (repo *AlbumRepository) FindOne(id string) (*entity.Album, error)

func (*AlbumRepository) Save

func (repo *AlbumRepository) Save(album *entity.Album) error

type Database

type Database struct {
	Db *sql.DB
}

Jump to

Keyboard shortcuts

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