plugins

package
v0.19.771 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallObjMethod

func CallObjMethod(db *gorm.DB, fc func(value interface{}, tx *gorm.DB) bool)

This CallObjMethod function, is copied from https://raw.githubusercontent.com/go-gorm/gorm/master/callbacks/callmethod.go, which is how the gorm hooks dispatch calls to model functions.

func TableName

func TableName(db *gorm.DB, obj any) string

Types

type Tabler

type Tabler interface {
	TableName() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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