Documentation ¶
Overview ¶
table give a logical in-memory buffer row a database table.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct { Name string Row []Row // Result set, which should include current buffer if not nil. Set []*Buffer // contains filtered or unexported fields }
func FillCommand ¶
func (*Buffer) ColumnIndex ¶
ColumnIndex returns the index of the named column. If the name is not present it returns -1.
type JsonRowArray ¶
type JsonRowArray struct { *Buffer FlushAt int // Additional properties to add to the output. Meta map[string]interface{} ResultNameName string // Default field name is "Name". ColumnHeadersName string // Default field name is "Column". DataRowsName string // Default field name is "Data". }
Serialize the table buffer as an object with a column name array and an an array of rows. Each row is an array of values. Supports many result sets by chaining them together.
func (*JsonRowArray) MarshalJSON ¶
func (coder *JsonRowArray) MarshalJSON() ([]byte, error)
type JsonRowObject ¶
Serialize table buffer as an array of JSON objects. When multiple results are returned, turns into an array of arrays.
func (*JsonRowObject) MarshalJSON ¶
func (coder *JsonRowObject) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.