gorm

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CachedRepositoryBuilder

func CachedRepositoryBuilder(db *gorm.DB, dataType interface{}) datarepo.Builder

Creates a new Builder for a GORM based cached repository that will handle data of the provided data type.

The data type is expected to be a struct or a pointer to a struct

func NewDataWriter

func NewDataWriter(db *gorm.DB, dataType interface{}) datarepo.DataWriter

func NewNonUniqueKeyDataFetcher

func NewNonUniqueKeyDataFetcher(db *gorm.DB, dataType interface{}) datarepo.DataFetcher

func NewUniqueKeyDataFetcher

func NewUniqueKeyDataFetcher(db *gorm.DB, dataType interface{}) datarepo.DataFetcher

Types

This section is empty.

Jump to

Keyboard shortcuts

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