Documentation ¶
Index ¶
- type ConcatItems
- type ConcatPicker
- type Config
- type ConstantPicker
- type Converter
- type ConverterFunc
- type ConverterPicker
- type Converters
- type DefaultConverter
- type FunctionBoolConverter
- type FunctionConverter
- type FunctionDateConverter
- type FunctionDateTimeConverter
- type FunctionDoubleConverter
- type FunctionFloatConverter
- type FunctionIntConverter
- type FunctionStringConverter
- type FunctionTimeConverter
- type IndexPicker
- type NonConverter
- type NullConverter
- type NullableConverter
- type NullableConverters
- type NullablePickers
- type Picker
- type PickerFunc
- type TypeBoolConverter
- type TypeDateConverter
- type TypeDatetimeConverter
- type TypeDoubleConverter
- type TypeFloatConverter
- type TypeGeoConverter
- type TypeGeoLineStringConverter
- type TypeGeoPointConverter
- type TypeGeoPolygonConverter
- type TypeIntConverter
- type TypeStringConverter
- type TypeTimeConverter
- type TypeTimestampConverter
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcatItems ¶
type ConcatItems struct {
// contains filtered or unexported fields
}
func (*ConcatItems) Add ¶
func (ci *ConcatItems) Add(items ...any) (err error)
func (*ConcatItems) AddConstant ¶
func (ci *ConcatItems) AddConstant(constant string) error
func (*ConcatItems) AddIndex ¶
func (ci *ConcatItems) AddIndex(index int) error
func (ConcatItems) Len ¶
func (ci ConcatItems) Len() int
type ConcatPicker ¶
type ConcatPicker struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct { ConcatItems []any // Concat index column, constant, or mixed. int for index column, string for constant. Indices []int // Set index columns, the first non-null. Nullable func(string) bool // Determine whether it is null. Optional. NullValue string // Set null value when it is null. Optional. DefaultValue *string // Set default value when it is null. Optional. Type string // Set the type of value. Function *string // Set the conversion function of value. CheckOnPost func(*Value) error // Set the value check function on post. }
Config is the configuration to build Picker The priority is as follows:
ConcatItems > Indices Nullable DefaultValue NullValue, if set to null, subsequent conversions will be skipped. Type Function CheckOnPost
type ConstantPicker ¶
type ConstantPicker string
type Converter ¶
func NewTypeConverter ¶
type ConverterFunc ¶
type ConverterPicker ¶
type ConverterPicker struct {
// contains filtered or unexported fields
}
type Converters ¶
type Converters []Converter
type DefaultConverter ¶
type DefaultConverter struct {
Value string
}
type FunctionBoolConverter ¶ added in v1.0.15
type FunctionBoolConverter struct{}
type FunctionConverter ¶
type FunctionConverter struct {
Name string
}
type FunctionDateConverter ¶ added in v1.0.14
type FunctionDateConverter struct {
Name string
}
type FunctionDateTimeConverter ¶ added in v1.0.13
type FunctionDateTimeConverter struct {
Name string
}
type FunctionDoubleConverter ¶ added in v1.0.14
type FunctionDoubleConverter struct{}
type FunctionFloatConverter ¶ added in v1.0.14
type FunctionFloatConverter struct{}
type FunctionIntConverter ¶ added in v1.0.14
type FunctionIntConverter struct{}
type FunctionStringConverter ¶
type FunctionStringConverter struct {
Name string
}
type FunctionTimeConverter ¶ added in v1.0.13
type FunctionTimeConverter struct {
Name string
}
type IndexPicker ¶
type IndexPicker int
type NonConverter ¶
type NonConverter struct{}
type NullConverter ¶
type NullConverter struct {
Value string
}
type NullableConverter ¶
type NullableConverters ¶
type NullableConverters []Converter
type NullablePickers ¶
type NullablePickers []Picker
type PickerFunc ¶
type TypeBoolConverter ¶
type TypeBoolConverter = FunctionBoolConverter
type TypeDateConverter ¶
type TypeDateConverter = FunctionDateConverter
type TypeDatetimeConverter ¶
type TypeDatetimeConverter = FunctionDateTimeConverter
type TypeDoubleConverter ¶
type TypeDoubleConverter = FunctionDoubleConverter
type TypeFloatConverter ¶
type TypeFloatConverter = FunctionFloatConverter
type TypeGeoConverter ¶
type TypeGeoConverter = FunctionStringConverter
type TypeGeoLineStringConverter ¶
type TypeGeoLineStringConverter = FunctionStringConverter
type TypeGeoPointConverter ¶
type TypeGeoPointConverter = FunctionStringConverter
type TypeGeoPolygonConverter ¶
type TypeGeoPolygonConverter = FunctionStringConverter
type TypeIntConverter ¶
type TypeIntConverter = FunctionIntConverter
type TypeStringConverter ¶
type TypeStringConverter struct { }
type TypeTimeConverter ¶
type TypeTimeConverter = FunctionTimeConverter
type TypeTimestampConverter ¶
type TypeTimestampConverter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.