repositorygorm

package
v0.0.0-...-c2c5a46 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 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 Character

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

func NewCharacter

func NewCharacter(opts *CharacterOptions) *Character

func (Character) CreateOrUpdate

func (c Character) CreateOrUpdate(ctx context.Context, chara *entity.Character) error

func (Character) LoadByID

func (c Character) LoadByID(ctx context.Context, id uint) (*entity.Character, error)

func (Character) LoadMany

func (c Character) LoadMany(ctx context.Context, predicate predicate.Character) ([]*entity.Character, error)

func (Character) RemoveByID

func (c Character) RemoveByID(ctx context.Context, id uint) error

type CharacterOptions

type CharacterOptions struct {
	DB *gorm.DB
}

Jump to

Keyboard shortcuts

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