orm

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ExtensionName = "orm"

Variables

This section is empty.

Functions

func NewExtension

func NewExtension(base database.Database) database.Extension[Extended]

Types

type Extended

type Extended interface {
	database.Extended
	ExecuteGormFunction(execFunc func(db *gorm.DB) *gorm.DB) error
	QueryGormFunction(receiver any, queryFunc func(db *gorm.DB) *gorm.DB) error
	ExecuteGormFunctionWithCtx(ctx context.Context, execFunc func(db *gorm.DB) *gorm.DB) error
	QueryGormFunctionWithCtx(ctx context.Context, receiver any, queryFunc func(db *gorm.DB) *gorm.DB) error
}

type Extension

type Extension struct {
	database.Database
}

func (*Extension) InitializeExtension

func (e *Extension) InitializeExtension(base database.Database) Extended

Jump to

Keyboard shortcuts

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