postgres

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenreRepository

type GenreRepository struct {
	// contains filtered or unexported fields
}

func New

func New(env *env.Postgres) GenreRepository

func (GenreRepository) Create

func (r GenreRepository) Create(ctx context.Context, i *entity.Genre) error

func (GenreRepository) Delete

func (r GenreRepository) Delete(ctx context.Context, i *entity.Genre) error

func (GenreRepository) FindAll

func (r GenreRepository) FindAll(ctx context.Context) ([]entity.Genre, error)

func (GenreRepository) FindByID

func (r GenreRepository) FindByID(ctx context.Context, id uint) (*entity.Genre, error)

func (GenreRepository) FindByIDs

func (r GenreRepository) FindByIDs(ctx context.Context, ids []uint) ([]entity.Genre, error)

func (GenreRepository) Update

func (r GenreRepository) Update(ctx context.Context, i *entity.Genre) error

Jump to

Keyboard shortcuts

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