Documentation ¶
Index ¶
- Constants
- func FuncMap() template.FuncMap
- type NullType
- type RecordContext
- func (rc *RecordContext) Clean()
- func (rc *RecordContext) DecodeValueByColumn(name string, v any) (any, error)
- func (rc *RecordContext) DecodeValueByType(name string, v any) (any, error)
- func (rc *RecordContext) EncodeValueByColumn(name string, v any) (any, error)
- func (rc *RecordContext) EncodeValueByType(name string, v any) (any, error)
- func (rc *RecordContext) GetChangedColumns() map[string]struct{}
- func (rc *RecordContext) GetColumnType(name string) (string, error)
- func (rc *RecordContext) GetColumnValue(name string) (any, error)
- func (rc *RecordContext) GetRawColumnValue(name string) (any, error)
- func (rc *RecordContext) SetColumnValue(name string, v any) (bool, error)
- func (rc *RecordContext) SetRawColumnValue(name string, v any) (bool, error)
- func (rc *RecordContext) SetRecord(r *toolkit.Record)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RecordContext ¶
type RecordContext struct {
// contains filtered or unexported fields
}
func NewRecordContext ¶
func NewRecordContext() *RecordContext
func (*RecordContext) Clean ¶
func (rc *RecordContext) Clean()
func (*RecordContext) DecodeValueByColumn ¶
func (rc *RecordContext) DecodeValueByColumn(name string, v any) (any, error)
DecodeValueByColumn - decode value from string or NullValue to the real type using column type
func (*RecordContext) DecodeValueByType ¶
func (rc *RecordContext) DecodeValueByType(name string, v any) (any, error)
DecodeValueByType - decode value from string or NullValue to the real type using type
func (*RecordContext) EncodeValueByColumn ¶
func (rc *RecordContext) EncodeValueByColumn(name string, v any) (any, error)
EncodeValueByColumn - encode value from real type to the string or NullValue using column type
func (*RecordContext) EncodeValueByType ¶
func (rc *RecordContext) EncodeValueByType(name string, v any) (any, error)
EncodeValueByType - encode value from real type to the string or NullValue using type
func (*RecordContext) GetChangedColumns ¶
func (rc *RecordContext) GetChangedColumns() map[string]struct{}
func (*RecordContext) GetColumnType ¶
func (rc *RecordContext) GetColumnType(name string) (string, error)
func (*RecordContext) GetColumnValue ¶
func (rc *RecordContext) GetColumnValue(name string) (any, error)
func (*RecordContext) GetRawColumnValue ¶
func (rc *RecordContext) GetRawColumnValue(name string) (any, error)
func (*RecordContext) SetColumnValue ¶
func (rc *RecordContext) SetColumnValue(name string, v any) (bool, error)
func (*RecordContext) SetRawColumnValue ¶
func (rc *RecordContext) SetRawColumnValue(name string, v any) (bool, error)
func (*RecordContext) SetRecord ¶
func (rc *RecordContext) SetRecord(r *toolkit.Record)
Click to show internal directories.
Click to hide internal directories.