adapters

package
v0.0.0-...-ad9433e Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GormSqlRepository

type GormSqlRepository struct {
	DB *gorm.DB
}

func (*GormSqlRepository) Add

func (r *GormSqlRepository) Add(team *domain.Team) error

func (*GormSqlRepository) Get

func (r *GormSqlRepository) Get(uuid string) (*domain.Team, error)

func (*GormSqlRepository) Update

func (r *GormSqlRepository) Update(team *domain.Team) error

type GormSqlUnitOfWork

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

func NewSqlUnitOfWork

func NewSqlUnitOfWork(db *gorm.DB) *GormSqlUnitOfWork

func (*GormSqlUnitOfWork) Begin

func (uow *GormSqlUnitOfWork) Begin() error

func (*GormSqlUnitOfWork) Commit

func (uow *GormSqlUnitOfWork) Commit() error

func (*GormSqlUnitOfWork) Rollback

func (uow *GormSqlUnitOfWork) Rollback()

func (*GormSqlUnitOfWork) Teams

Jump to

Keyboard shortcuts

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