repository

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestRepository

func NewTestRepository(db *data.Database) domain.TestRepository

NewTestRepository creates a new instance of TestRepository.

Types

type TestRepository

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

func (*TestRepository) FindAll

func (r *TestRepository) FindAll(ctx context.Context) ([]domain.Test, error)

FindAll retrieves all tests.

func (*TestRepository) Save

func (r *TestRepository) Save(ctx context.Context, test domain.Test) error

Save creates a new test record.

func (*TestRepository) SaveBatch

func (r *TestRepository) SaveBatch(ctx context.Context, tests []domain.Test) error

SaveBatch performs a batch upsert (insert or update) for tests.

func (*TestRepository) Update

func (r *TestRepository) Update(ctx context.Context, test domain.Test) error

Update modifies an existing test record.

Jump to

Keyboard shortcuts

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