xbinder

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const BinderBootEntryName = "binderEntry"

Variables

View Source
var BootEntry = xfboot.GetEntryOrRegister(BinderBootEntryName, func() xfboot.BootEntry {
	inst := &xBinderBootEntry{
		binders: make(map[string]*binderEntryItem),
	}
	registerInternalBinder(inst)
	return inst
}).(BinderBootEntry)

注册启动初始化入口

Functions

func GetQueryBinder

func GetQueryBinder(binderName TBinderName) DbQueryBinder

func NewQryDatasetBinder

func NewQryDatasetBinder(fieldMaps map[string]string, converts ...map[string]func(interface{}) interface{}) DbQueryBinder

func NewQryJsonBinder

func NewQryJsonBinder(fieldMaps map[string]string, converts ...map[string]func(interface{}) interface{}) DbQueryBinder

func NewQryMapBinder

func NewQryMapBinder(fieldMaps map[string]string, converts ...map[string]func(interface{}) interface{}) DbQueryBinder

func NewQrySliceBinder

func NewQrySliceBinder(fieldMaps map[string]string, converts ...map[string]func(interface{}) interface{}) DbQueryBinder

func NewQryXmlBinder

func NewQryXmlBinder(fieldMaps map[string]string, converts ...map[string]func(interface{}) interface{}) DbQueryBinder

func RegQueryBinder

func RegQueryBinder(binderName TBinderName, binder DbQueryBinder)

func VisitorBinder

func VisitorBinder(visitor QueryBinderVisit) DbQueryBinder

Types

type BinderBootEntry

type BinderBootEntry interface {
	Register(binderName string, binder xqi.DbQueryBinder, options ...map[string]interface{})
	GetBinder(binderName xqi.TBinderName) xqi.DbQueryBinder
	GetBinderByName(nameOptions string) xqi.DbQueryBinder
}

type TDbQueryDatasetBinder

type TDbQueryDatasetBinder struct {
	// contains filtered or unexported fields
}

func (*TDbQueryDatasetBinder) BuildRow

func (bd *TDbQueryDatasetBinder) BuildRow(row int, colInfos *[]QueryColValue) (result interface{}, exit bool)

创建行 row:当前行号 colInfos行中的列信息 返回:result行数据结构,exit: 返回true结束绑定

func (*TDbQueryDatasetBinder) EndBuild

func (bd *TDbQueryDatasetBinder) EndBuild() interface{}

绑定完成,返回所有行数据

func (*TDbQueryDatasetBinder) EndBuildRow

func (bd *TDbQueryDatasetBinder) EndBuildRow(rowData interface{})

行创建完成 rowData为BuildRow所创建的行数据

func (*TDbQueryDatasetBinder) FieldConvert

func (bd *TDbQueryDatasetBinder) FieldConvert(colIndex int, qryName string, val interface{}) interface{}

func (*TDbQueryDatasetBinder) FieldName

func (bd *TDbQueryDatasetBinder) FieldName(colIndex int, qryName string) string

func (*TDbQueryDatasetBinder) NewInstance

func (bd *TDbQueryDatasetBinder) NewInstance(options ...map[string]interface{}) DbQueryBinder

func (*TDbQueryDatasetBinder) SetOptions

func (bd *TDbQueryDatasetBinder) SetOptions(options map[string]interface{}) DbQueryBinder

func (*TDbQueryDatasetBinder) StartBuild

func (bd *TDbQueryDatasetBinder) StartBuild(colInfos ...*TQueryColInfo) bool

开始绑定,返回false时结束绑定

func (*TDbQueryDatasetBinder) StartBuildRow

func (bd *TDbQueryDatasetBinder) StartBuildRow(rowIndex int, colCount int) bool

开始创建行,返回false忽略该行

type TDbQueryJsonBinder

type TDbQueryJsonBinder struct {
	// contains filtered or unexported fields
}

func (*TDbQueryJsonBinder) BuildRow

func (bd *TDbQueryJsonBinder) BuildRow(row int, colInfos *[]QueryColValue) (result interface{}, exit bool)

创建行 row:当前行号 colInfos行中的列信息 返回:result行数据结构,exit: 返回true结束绑定

func (*TDbQueryJsonBinder) EndBuild

func (bd *TDbQueryJsonBinder) EndBuild() interface{}

绑定完成,返回所有行数据

func (*TDbQueryJsonBinder) EndBuildRow

func (bd *TDbQueryJsonBinder) EndBuildRow(rowData interface{})

行创建完成 rowData为BuildRow所创建的行数据

func (*TDbQueryJsonBinder) FieldConvert

func (bd *TDbQueryJsonBinder) FieldConvert(colIndex int, qryName string, val interface{}) interface{}

func (*TDbQueryJsonBinder) FieldName

func (bd *TDbQueryJsonBinder) FieldName(colIndex int, qryName string) string

func (*TDbQueryJsonBinder) NewInstance

func (bd *TDbQueryJsonBinder) NewInstance(options ...map[string]interface{}) DbQueryBinder

func (*TDbQueryJsonBinder) SetOptions

func (bd *TDbQueryJsonBinder) SetOptions(options map[string]interface{}) DbQueryBinder

func (*TDbQueryJsonBinder) StartBuild

func (bd *TDbQueryJsonBinder) StartBuild(colInfos ...*TQueryColInfo) bool

开始绑定,返回false时结束绑定

func (*TDbQueryJsonBinder) StartBuildRow

func (bd *TDbQueryJsonBinder) StartBuildRow(rowIndex int, colCount int) bool

开始创建行,返回false忽略该行

type TDbQueryMapBinder

type TDbQueryMapBinder struct {
	// contains filtered or unexported fields
}

func (*TDbQueryMapBinder) BuildRow

func (bd *TDbQueryMapBinder) BuildRow(row int, colInfos *[]QueryColValue) (result interface{}, exit bool)

创建行 row:当前行号 colInfos行中的列信息 返回:result行数据结构,exit: 返回true结束绑定

func (*TDbQueryMapBinder) EndBuild

func (bd *TDbQueryMapBinder) EndBuild() interface{}

绑定完成,返回所有行数据

func (*TDbQueryMapBinder) EndBuildRow

func (bd *TDbQueryMapBinder) EndBuildRow(rowData interface{})

行创建完成 rowData为BuildRow所创建的行数据

func (*TDbQueryMapBinder) FieldConvert

func (bd *TDbQueryMapBinder) FieldConvert(index int, qryName string, val interface{}) interface{}

func (*TDbQueryMapBinder) FieldName

func (bd *TDbQueryMapBinder) FieldName(colIndex int, qryName string) string

func (*TDbQueryMapBinder) NewInstance

func (bd *TDbQueryMapBinder) NewInstance(options ...map[string]interface{}) DbQueryBinder

func (*TDbQueryMapBinder) SetOptions

func (bd *TDbQueryMapBinder) SetOptions(options map[string]interface{}) DbQueryBinder

func (*TDbQueryMapBinder) StartBuild

func (bd *TDbQueryMapBinder) StartBuild(colInfos ...*TQueryColInfo) bool

开始绑定,返回false时结束绑定

func (*TDbQueryMapBinder) StartBuildRow

func (bd *TDbQueryMapBinder) StartBuildRow(rowIndex int, colCount int) bool

开始创建行,返回false忽略该行

type TDbQuerySliceBinder

type TDbQuerySliceBinder struct {
	// contains filtered or unexported fields
}

func (*TDbQuerySliceBinder) BuildRow

func (bd *TDbQuerySliceBinder) BuildRow(row int, colInfos *[]QueryColValue) (result interface{}, exit bool)

创建行 row:当前行号 colInfos行中的列信息 返回:result行数据结构,exit: 返回true结束绑定

func (*TDbQuerySliceBinder) EndBuild

func (bd *TDbQuerySliceBinder) EndBuild() interface{}

绑定完成,返回所有行数据

func (*TDbQuerySliceBinder) EndBuildRow

func (bd *TDbQuerySliceBinder) EndBuildRow(rowData interface{})

行创建完成 rowData为BuildRow所创建的行数据

func (*TDbQuerySliceBinder) FieldConvert

func (bd *TDbQuerySliceBinder) FieldConvert(colIndex int, qryName string, val interface{}) interface{}

func (*TDbQuerySliceBinder) FieldName

func (bd *TDbQuerySliceBinder) FieldName(colIndex int, qryName string) string

func (*TDbQuerySliceBinder) NewInstance

func (bd *TDbQuerySliceBinder) NewInstance(options ...map[string]interface{}) DbQueryBinder

func (*TDbQuerySliceBinder) SetOptions

func (bd *TDbQuerySliceBinder) SetOptions(options map[string]interface{}) DbQueryBinder

func (*TDbQuerySliceBinder) StartBuild

func (bd *TDbQuerySliceBinder) StartBuild(colInfos ...*TQueryColInfo) bool

开始绑定,返回false时结束绑定

func (*TDbQuerySliceBinder) StartBuildRow

func (bd *TDbQuerySliceBinder) StartBuildRow(rowIndex int, colCount int) bool

开始创建行,返回false忽略该行

type TDbQueryVisitorBinder

type TDbQueryVisitorBinder struct {
	// contains filtered or unexported fields
}

func (*TDbQueryVisitorBinder) BuildRow

func (bd *TDbQueryVisitorBinder) BuildRow(row int, colInfos *[]QueryColValue) (result interface{}, exit bool)

创建行 row:当前行号 colInfos行中的列信息 返回:result行数据结构,exit: 返回true结束绑定

func (*TDbQueryVisitorBinder) EndBuild

func (bd *TDbQueryVisitorBinder) EndBuild() interface{}

绑定完成,返回所有行数据

func (*TDbQueryVisitorBinder) EndBuildRow

func (bd *TDbQueryVisitorBinder) EndBuildRow(rowData interface{})

行创建完成 rowData为BuildRow所创建的行数据

func (*TDbQueryVisitorBinder) FieldConvert

func (bd *TDbQueryVisitorBinder) FieldConvert(colIndex int, qryName string, val interface{}) interface{}

func (*TDbQueryVisitorBinder) FieldName

func (bd *TDbQueryVisitorBinder) FieldName(colIndex int, qryName string) string

func (*TDbQueryVisitorBinder) NewInstance

func (bd *TDbQueryVisitorBinder) NewInstance(options ...map[string]interface{}) DbQueryBinder

func (*TDbQueryVisitorBinder) SetOptions

func (bd *TDbQueryVisitorBinder) SetOptions(options map[string]interface{}) DbQueryBinder

func (*TDbQueryVisitorBinder) StartBuild

func (bd *TDbQueryVisitorBinder) StartBuild(colInfos ...*TQueryColInfo) bool

开始绑定,返回false时结束绑定

func (*TDbQueryVisitorBinder) StartBuildRow

func (bd *TDbQueryVisitorBinder) StartBuildRow(rowIndex int, colCount int) bool

开始创建行,返回false忽略该行

type TDbQueryXmlBinder

type TDbQueryXmlBinder struct {
	// contains filtered or unexported fields
}

func (*TDbQueryXmlBinder) BuildRow

func (bd *TDbQueryXmlBinder) BuildRow(row int, colInfos *[]QueryColValue) (result interface{}, exit bool)

创建行 row:当前行号 colInfos行中的列信息 返回:result行数据结构,exit: 返回true结束绑定

func (*TDbQueryXmlBinder) EndBuild

func (bd *TDbQueryXmlBinder) EndBuild() interface{}

绑定完成,返回所有行数据

func (*TDbQueryXmlBinder) EndBuildRow

func (bd *TDbQueryXmlBinder) EndBuildRow(rowData interface{})

行创建完成 rowData为BuildRow所创建的行数据

func (*TDbQueryXmlBinder) FieldConvert

func (bd *TDbQueryXmlBinder) FieldConvert(colIndex int, qryName string, val interface{}) interface{}

func (*TDbQueryXmlBinder) FieldName

func (bd *TDbQueryXmlBinder) FieldName(colIndex int, qryName string) string

func (*TDbQueryXmlBinder) NewInstance

func (bd *TDbQueryXmlBinder) NewInstance(options ...map[string]interface{}) DbQueryBinder

func (*TDbQueryXmlBinder) SetOptions

func (bd *TDbQueryXmlBinder) SetOptions(options map[string]interface{}) DbQueryBinder

func (*TDbQueryXmlBinder) StartBuild

func (bd *TDbQueryXmlBinder) StartBuild(colInfos ...*TQueryColInfo) bool

开始绑定,返回false时结束绑定

func (*TDbQueryXmlBinder) StartBuildRow

func (bd *TDbQueryXmlBinder) StartBuildRow(rowIndex int, colCount int) bool

开始创建行,返回false忽略该行

Jump to

Keyboard shortcuts

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