orm

package
v0.0.0-...-389a64c Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DAO *relationalDAO
	UOW *unitOfWork
)
View Source
var DB *gorm.DB

Functions

func ApplyExactFilter

func ApplyExactFilter(param string, value string, args interface{}) dao.FilterFunc

Query filter of type EXACT MATCH

func ApplyLikeFilter

func ApplyLikeFilter(param string, value string, args interface{}) dao.FilterFunc

Query filter of type LIKE MATCH

func ApplyOrderFilter

func ApplyOrderFilter(param string, value string, args interface{}) dao.FilterFunc

Query filter to support ordering in query results

func Create

func Create(driver gorm.Dialector, loggerConfig *logger.Config) (*gorm.DB, error)

Init the orm DAO

func Init

func Init(driver gorm.Dialector, isDefault bool, loggerConfig *logger.Config) error

Init the orm DAO

func NewRelationalDAO

func NewRelationalDAO(identifierKey string) *relationalDAO

Types

This section is empty.

Jump to

Keyboard shortcuts

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