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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostRepository

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

func New

func New(env *env.Postgres) PostRepository

func (PostRepository) Create

func (r PostRepository) Create(ctx context.Context, i *entity.Post) error

func (PostRepository) Delete

func (r PostRepository) Delete(ctx context.Context, i *entity.Post) error

func (PostRepository) FindByFilter

func (PostRepository) FindByID

func (r PostRepository) FindByID(ctx context.Context, id uint) (*entity.Post, error)

func (PostRepository) FindByIDs

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

func (PostRepository) FindBySlug

func (r PostRepository) FindBySlug(ctx context.Context, slug string) (*entity.Post, error)

func (PostRepository) FindCountByFilter

func (r PostRepository) FindCountByFilter(ctx context.Context, data *repository.FindByFilterPostData) (int, error)

func (PostRepository) Update

func (r PostRepository) Update(ctx context.Context, i *entity.Post) error

Jump to

Keyboard shortcuts

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