repository

package
v0.0.0-...-a9b91a4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RecordRepoImpl

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

func NewRecordRepoImpl

func NewRecordRepoImpl(db *sql.DB) *RecordRepoImpl

func (*RecordRepoImpl) CheckIfExistsByID

func (r *RecordRepoImpl) CheckIfExistsByID(ctx context.Context, id string) (bool, error)

func (*RecordRepoImpl) CountByFilter

func (s *RecordRepoImpl) CountByFilter(ctx context.Context, f *domain.RecordFilter) (uint64, error)

func (*RecordRepoImpl) DeleteByID

func (s *RecordRepoImpl) DeleteByID(ctx context.Context, id string) error

func (*RecordRepoImpl) GetByID

func (r *RecordRepoImpl) GetByID(ctx context.Context, id string) (*domain.Record, error)

func (*RecordRepoImpl) GetByUUID

func (r *RecordRepoImpl) GetByUUID(ctx context.Context, uid string) (*domain.Record, error)

func (*RecordRepoImpl) Insert

func (r *RecordRepoImpl) Insert(ctx context.Context, m *domain.Record) error

func (*RecordRepoImpl) InsertOrUpdateByID

func (r *RecordRepoImpl) InsertOrUpdateByID(ctx context.Context, m *domain.Record) error

func (*RecordRepoImpl) ListByFilter

func (s *RecordRepoImpl) ListByFilter(ctx context.Context, f *domain.RecordFilter) ([]*domain.Record, error)

func (*RecordRepoImpl) UpdateByID

func (r *RecordRepoImpl) UpdateByID(ctx context.Context, m *domain.Record) error

Jump to

Keyboard shortcuts

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