Documentation
¶
Index ¶
- Constants
- Variables
- func Main() error
- func NewConfigFromFlag() func() *Config
- func ParseAnyDateTime(s string) (time.Time, error)
- func RegisterDB(name string, setting *DBDialect)
- type CommandIn
- type Config
- type DBDialect
- type Filter
- type FilterSource
- type History
- type InteractiveIn
- type ReservedWordPattern
- type RowToCsv
- type Script
- type Session
Constants ¶
View Source
const ( DateTimeTzLayout = "2006-01-02 15:04:05.999999999 -07:00" DateTimeLayout = "2006-01-02 15:04:05.999999999" DateOnlyLayout = "2006-01-02" TimeOnlyLayout = "15:04:05.999999999" TimeTzLayout = "15:04:05.999999999 -07:00" )
Variables ¶
View Source
var Version string
Functions ¶
func NewConfigFromFlag ¶
func NewConfigFromFlag() func() *Config
NewConfigFromFlag returns the constructor of Config from flag variables.
cfgSetup := NewConfigFromFlag() flag.Parse() cfg := cfgSetup()
func RegisterDB ¶
Types ¶
type Config ¶
type DBDialect ¶
type FilterSource ¶
type InteractiveIn ¶
type InteractiveIn struct { *multiline.Editor // contains filtered or unexported fields }
func (*InteractiveIn) AutoPilotForCsvi ¶
func (i *InteractiveIn) AutoPilotForCsvi() getKeyAndSize
func (*InteractiveIn) GetKey ¶
func (i *InteractiveIn) GetKey() (string, error)
type ReservedWordPattern ¶ added in v0.17.0
type ReservedWordPattern map[string]struct{}
func (ReservedWordPattern) FindAllStringIndex ¶ added in v0.17.0
func (h ReservedWordPattern) FindAllStringIndex(s string, n int) [][]int
type Script ¶
type Script struct {
// contains filtered or unexported fields
}
func (*Script) AutoPilotForCsvi ¶
func (script *Script) AutoPilotForCsvi() getKeyAndSize
Source Files
¶
Click to show internal directories.
Click to hide internal directories.