Versions in this module Expand all Collapse all v0 v0.6.0 Jan 14, 2018 Changes in this version type Handler + Highlight func(io.Writer, string) error + Reset func([]rune) v0.6.0-rc4 Dec 18, 2017 v0.6.0-rc3 Nov 24, 2017 v0.6.0-rc2 Nov 9, 2017 v0.6.0-rc1 Oct 25, 2017 v0.5.0 Apr 2, 2017 Changes in this version type Handler + Begin func() error + ChangePassword func(string) (string, error) + Commit func() error + ReadVar func(string, string) (string, error) + Rollback func() error type Metacmd + const Begin + const Commit + const Password + const Prompt + const Rollback + const Set + const ShellExec + const Unset + type Params struct + H Handler + N string + P []string + R Res + func (p *Params) A() []string + func (p *Params) G() string + func (p *Params) V(d string) string type Section + const SectionTransaction v0.4.0 Mar 29, 2017 Changes in this version + var ErrMissingRequiredArgument = errors.New("missing required argument") + var ErrUnknownCommand = errors.New("unknown command") + var SectionOrder = []Section + func Listing(w io.Writer) + type Cmd struct + Aliases map[string]string + Desc string + Min int + Name string + Process func(Handler, string, []string) (Res, error) + Section Section + type ExecType int + const ExecExec + const ExecNone + const ExecOnly + const ExecPipe + const ExecSet + type Handler interface + Buf func() *stmt.Stmt + Close func() error + DB func() *sql.DB + IO func() rline.IO + Include func(string, bool) error + Last func() string + Open func(...string) error + URL func() *dburl.URL + User func() *user.User + type Metacmd uint + const ChangeDir + const ConnInfo + const Connect + const Copyright + const Describe + const Disconnect + const Drivers + const Echo + const Edit + const Exec + const Include + const None + const Print + const Question + const Quit + const Reset + const SetEnv + const Write + type Res struct + Exec ExecType + ExecParam string + Processed int + Quit bool + type Runner interface + Run func(Handler) (Res, error) + func Decode(name string, params []string) (Runner, error) + type RunnerFunc func(Handler) (Res, error) + func (f RunnerFunc) Run(h Handler) (Res, error) + type Section string + const SectionConnection + const SectionFormatting + const SectionGeneral + const SectionHelp + const SectionInformational + const SectionInputOutput + const SectionLargeObjects + const SectionOperatingSystem + const SectionQueryBuffer + const SectionVariables + func (s Section) String() string