repository

package
v0.0.0-...-e5fa651 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinLimit = 10
	MaxLimit = 200
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregation

type Aggregation = types.Aggregation

type MySQLRepository

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

func New

func New(db *gorm.DB) *MySQLRepository

func (*MySQLRepository) AggregateOccurrences

func (r *MySQLRepository) AggregateOccurrences(seqId int, userQuery types.AggQuery) ([]Aggregation, error)

func (*MySQLRepository) CheckDatabaseConnection

func (r *MySQLRepository) CheckDatabaseConnection() string

func (*MySQLRepository) CountOccurrences

func (r *MySQLRepository) CountOccurrences(seqId int, userQuery types.CountQuery) (int64, error)

func (*MySQLRepository) GetOccurrences

func (r *MySQLRepository) GetOccurrences(seqId int, userQuery types.ListQuery) ([]Occurrence, error)

func (*MySQLRepository) GetPart

func (r *MySQLRepository) GetPart(seqId int) (int, error)

type Occurrence

type Occurrence = types.Occurrence

type Repository

type Repository interface {
	CheckDatabaseConnection() string
	GetOccurrences(seqId int, userFilter types.ListQuery) ([]Occurrence, error)
	CountOccurrences(seqId int, userQuery types.CountQuery) (int64, error)
	AggregateOccurrences(seqId int, userQuery types.AggQuery) ([]Aggregation, error)
}

Jump to

Keyboard shortcuts

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