Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAssociationJoin

func BuildAssociationJoin(db *gorm.DB) string

BuildAssociationJoin creates a JOIN clause for Association relationships

func BuildAttributionJoin

func BuildAttributionJoin(db *gorm.DB) string

BuildAttributionJoin creates a JOIN clause for Attribution relationships

func BuildContextPropertyJoin

func BuildContextPropertyJoin(db *gorm.DB, propertyName string) string

BuildContextPropertyJoin creates a JOIN clause for ContextProperty relationships

func BuildParentContextJoin

func BuildParentContextJoin(db *gorm.DB) string

BuildParentContextJoin creates a JOIN clause for ParentContext relationships

func GetColumnRef

func GetColumnRef(db *gorm.DB, model any, column string) string

GetColumnRef returns properly quoted column references

func GetTableName

func GetTableName(db *gorm.DB, model any) string

GetTableName returns the properly quoted table name (exported version for external use)

Types

This section is empty.

Jump to

Keyboard shortcuts

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