helper

package
v0.0.1-20230407-0004 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletedAt

func DeletedAt(t *time.Time) gorm.DeletedAt

func DeletedAtNow

func DeletedAtNow() gorm.DeletedAt

func DeletedAtNowP

func DeletedAtNowP() *gorm.DeletedAt

func GetModelDBColumns

func GetModelDBColumns(db *gorm.DB, model interface{}) []string

func GetModelDBTableName

func GetModelDBTableName(db *gorm.DB, model interface{}) (string, error)

func GetModelMapWithDBColumns

func GetModelMapWithDBColumns(model interface{}, reverse ...bool) (map[string]string, error)

func GetModelPrimaryKeys

func GetModelPrimaryKeys(model interface{}) []string

func RemoveOmit

func RemoveOmit(tx *gorm.DB, columns ...string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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