Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnType ¶
type ColumnType struct { *sql.ColumnType Index uint16 `json:"index" xml:"index"` }
ColumnType 列类型
func (*ColumnType) MarshalJSON ¶
func (col *ColumnType) MarshalJSON() ([]byte, error)
MarshalJSON json序列化
func (*ColumnType) MarshalXML ¶
func (col *ColumnType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
MarshalXML xml序列化
func (*ColumnType) String ¶
func (col *ColumnType) String() string
type DataSet ¶
type DataSet []*DataTable
func NewDataSetFromRows ¶
NewDataSetFromRows 从sql.Rows生成DataSet
func (DataSet) MarshalXML ¶
MarshalXML xml序列化
type DataTable ¶
type DataTable struct { Columns []*ColumnType `json:"columns" xml:"columns"` // 列 Rows []DataRow `json:"rows" xml:"rows"` // 行数据 }
func (DataTable) MarshalXML ¶
MarshalXML 将DataTable转为xml
Click to show internal directories.
Click to hide internal directories.