bean

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

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

Jump to

Keyboard shortcuts

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