Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultValueFilterChainBuilder ¶
type DefaultValueFilterChainBuilder struct {
// contains filtered or unexported fields
}
DefaultValueFilterChainBuilder only works for InsertXXX method, But InsertOrUpdate and InsertOrUpdateWithCtx is more dangerous than other methods. so we won't handle those two methods unless you set includeInsertOrUpdate to true And if the element is not pointer, this filter doesn't work
func NewDefaultValueFilterChainBuilder ¶
func NewDefaultValueFilterChainBuilder(typeAdapters map[string]bean.TypeAdapter, includeInsertOrUpdate bool, compatibleWithOldStyle bool) *DefaultValueFilterChainBuilder
NewDefaultValueFilterChainBuilder will create an instance of DefaultValueFilterChainBuilder In beego v1.x, the default value config looks like orm:default(xxxx) But the default value in 2.x is default:xxx so if you want to be compatible with v1.x, please pass true as compatibleWithOldStyle
func (*DefaultValueFilterChainBuilder) FilterChain ¶
func (d *DefaultValueFilterChainBuilder) FilterChain(next orm.Filter) orm.Filter
Click to show internal directories.
Click to hide internal directories.