helper

package
v0.0.1-20230117-0001 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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