Documentation ¶
Overview ¶
Package model defines Data Transfer Object (Entity, Value Object)
Package model defines Data Transfer Object (Entity, Value Object)
Package model defines Data Transfer Object (Entity, Value Object)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSV ¶
CSV is csv data with header.
func (*CSV) IsHeaderEmpty ¶
IsHeaderEmpty return wherther header is empty or not
type Excel ¶ added in v0.7.0
type Excel struct { // Name is sheet name. Name string // Header is excel header. Header Header // Records is excel record. Records []Record }
Excel is XLAM / XLSM / XLSX / XLTM / XLTX data with header.
type Histories ¶ added in v0.0.5
type Histories []*History
Histories is sqly history all record.
func (Histories) ToStringList ¶ added in v0.2.0
ToStringList convert history to string list.
type History ¶ added in v0.0.5
type History struct { // ID is history id. 1 is oldest ID int // Request is sqly history record that is user input from sqly prompt Request string }
History is sqly history record.
type JSON ¶ added in v0.3.0
type JSON struct { // Name is json file name Name string // JSON is key and value JSON []map[string]interface{} }
JSON is json data with indefinite keys
type LTSV ¶ added in v0.5.0
LTSV is Labeled Tab-separated Values data with label.
func (*LTSV) IsLabelEmpty ¶ added in v0.5.0
IsLabelEmpty return wherther label is empty or not
type PrintMode ¶ added in v0.0.10
type PrintMode uint
PrintMode is enum to specify output method
const ( // PrintModeTable print data in table format PrintModeTable PrintMode = iota // PrintModeMarkdownTable print data in markdown table format PrintModeMarkdownTable // PrintModeCSV print data in csv format PrintModeCSV // PrintModeTSV print data in tsv format PrintModeTSV // PrintModeLTSV print data in ltsv format PrintModeLTSV // PrintModeJSON print data in json format PrintModeJSON // PrintModeExcel print data in excel format PrintModeExcel )
type TSV ¶ added in v0.4.0
TSV is tsv data with header.
func (*TSV) IsHeaderEmpty ¶ added in v0.4.0
IsHeaderEmpty return wherther header is empty or not
type Table ¶
type Table struct { // Name is table name. Name string // Header is table header. Header Header // Records is table records. Records []Record }
Table is DB table.
func (*Table) IsEmptyHeader ¶
IsEmptyHeader return wherther table header is empty or not
func (*Table) IsEmptyName ¶
IsEmptyName return wherther table name is empty or not
func (*Table) IsEmptyRecords ¶
IsEmptyRecords return wherther table records is empty or not
func (*Table) IsSameHeaderColumnName ¶ added in v0.3.1
IsSameHeaderColumnName return whether the table has a header column with the same name