Documentation ¶
Index ¶
- func GetFieldToColumnMap(typ reflect.Type) map[string]string
- func GetQueryFilterByFields(db *gorm.DB, fieldColumns map[string]string, fields map[string]interface{}) (*gorm.DB, error)
- func GetQueryFilterByTypeFields(db *gorm.DB, typ interface{}, fields map[string]interface{}) (*gorm.DB, error)
- func GetQueryLikeFilterByFields(db *gorm.DB, fieldColumns map[string]string, fields map[string]interface{}) (*gorm.DB, error)
- type SQLCollector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFieldToColumnMap ¶
GetFieldToColumnMap .
func GetQueryFilterByFields ¶
func GetQueryFilterByFields(db *gorm.DB, fieldColumns map[string]string, fields map[string]interface{}) (*gorm.DB, error)
GetQueryFilterByFields .
Types ¶
type SQLCollector ¶
func NewSQLCollector ¶
func NewSQLCollector(filename string, baseLogger logger.Interface) (*SQLCollector, error)
Click to show internal directories.
Click to hide internal directories.