repository

package
v0.0.0-...-240d691 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SentenceRepository

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

func NewSentenceRepository

func NewSentenceRepository(db sqlx.ExtContext) *SentenceRepository

func (*SentenceRepository) AddSentence

func (r *SentenceRepository) AddSentence(ctx context.Context, sentence *models.Sentence) error

func (*SentenceRepository) DeleteSentenceByIDs

func (r *SentenceRepository) DeleteSentenceByIDs(ctx context.Context, ids []uint64) error

func (*SentenceRepository) FetchSentences

func (r *SentenceRepository) FetchSentences(ctx context.Context) ([]*models.Sentence, error)

Jump to

Keyboard shortcuts

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