gorm

package
v0.0.0-...-70b330c Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoFilter represents an error when no filter are provided.
	ErrNoFilter = errors.New("no filters provided")
	// ErrNoEntitiesUpdated represent an error when no entities were updated in the database
	// after an Update operation.
	ErrNoEntitiesUpdated = errors.New("no entities were updated")
	// ErrNoEntitiesDeleted represent an error when no entities were deleted in the database
	// after a Delete operation.
	ErrNoEntitiesDeleted = errors.New("no entities were deleted")
)

Functions

func NewGormFilter

func NewGormFilter(template string, values ...interface{}) domain.Filter

NewGormFilter initializes a new filter with the given template and value to be used with gorm.

func NewRepository

func NewRepository(db *gorm.DB, logger ign.Logger, entity domain.Entity) domain.Repository

NewRepository initializes a new Repository implementation using gorm.

Types

This section is empty.

Jump to

Keyboard shortcuts

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