Versions in this module Expand all Collapse all v1 v1.4.4 Jan 26, 2022 Changes in this version + type Mapper struct + func NewMapper(datasource, table string) *Mapper + func (a *Mapper) Bean() string + func (a *Mapper) DataSource() string + func (a *Mapper) SetDB(db datasource.DB) v1.4.3 Dec 14, 2021 Changes in this version + const KeywordAnd + const KeywordBetween + const KeywordDELETE + const KeywordDISTINCE + const KeywordEqual + const KeywordFrom + const KeywordGreater + const KeywordIn + const KeywordInsert + const KeywordIsNotNull + const KeywordIsNull + const KeywordLess + const KeywordLike + const KeywordNotBetween + const KeywordNotEqual + const KeywordNotGreater + const KeywordNotIn + const KeywordNotLess + const KeywordNotLike + const KeywordOr + const KeywordOrderBy + const KeywordSelect + const KeywordSet + const KeywordUpdate + const KeywordWhere + const Placeholder + const PlaceholderNumeric + const PlaceholderString + func NewExample() *example + type Criteria interface + AndBetween func(field string, value1, value2 interface{}) Criteria + AndEqualTo func(field string, value interface{}) Criteria + AndGreaterThan func(field string, value interface{}) Criteria + AndIn func(field string, list ...interface{}) Criteria + AndIsNotNull func(field string) Criteria + AndIsNull func(field string) Criteria + AndLessThan func(field string, value interface{}) Criteria + AndLike func(field string, value interface{}) Criteria + AndNotBetween func(field string, value1, value2 interface{}) Criteria + AndNotEqualTo func(field string, value interface{}) Criteria + AndNotGreaterThan func(field string, value interface{}) Criteria + AndNotIn func(field string, list ...interface{}) Criteria + AndNotLessThan func(field string, value interface{}) Criteria + AndNotLike func(field string, value interface{}) Criteria + OrBetween func(field string, value1, value2 interface{}) Criteria + OrEqualTo func(field string, value interface{}) Criteria + OrGreaterThan func(field string, value interface{}) Criteria + OrIn func(field string, list ...interface{}) Criteria + OrIsNotNull func(field string) Criteria + OrIsNull func(field string) Criteria + OrLessThan func(field string, value interface{}) Criteria + OrLike func(field string, value interface{}) Criteria + OrNotBetween func(field string, value1, value2 interface{}) Criteria + OrNotEqualTo func(field string, value interface{}) Criteria + OrNotGreaterThan func(field string, value interface{}) Criteria + OrNotIn func(field string, list ...interface{}) Criteria + OrNotLessThan func(field string, value interface{}) Criteria + OrNotLike func(field string, value interface{}) Criteria + type Example interface + And func(criteria Criteria) Example + CreateCriteria func() Criteria + Distinct func(d bool) Example + Or func(criteria Criteria) Example + OrderBy func(order string) Example + String func() string + type ISelectMapper interface + SelectByExample func(example Example, value interface{}) + type SelectMapper struct + func NewSelectMapper(table string, db *gorm.DB) *SelectMapper + func (s *SelectMapper) SelectByExample(example Example, value interface{}) error + type UpdateMapper struct + func NewUpdateMapper(table string) *UpdateMapper + func (s *UpdateMapper) UpdateByExample(example Example, value interface{}) error