Versions in this module Expand all Collapse all v0 v0.0.7 May 7, 2026 Changes in this version + func Cmd() *cobra.Command + type DBConfig struct + DSN string + Driver string + Host string + Name string + Password string + Port int + SSLMode string + User string + type EnvironmentLookup func(string) string + type ExecutionResult struct + Columns []string + IsQuery bool + Rows [][]string + RowsAffected int64 + type Executor interface + Close func() error + Execute func(context.Context, string) (ExecutionResult, error) + Summary func() string + func OpenExecutor(ctx context.Context, cfg ResolvedConfig) (Executor, error) + type Options struct + DSN string + Driver string + Host string + Name string + Password string + Port int + SSLMode string + User string + type ResolvedConfig struct + DSN string + Driver string + Host string + Name string + Password string + Port int + SSLMode string + User string + func ResolveConfig(opts Options, configPath, envPath string, envLookup EnvironmentLookup) (ResolvedConfig, error) + func (c ResolvedConfig) IsSQLite() bool + func (c ResolvedConfig) SQLDriverName() string + func (c ResolvedConfig) SafeSummary() string + type Shell struct + ErrOut io.Writer + Executor Executor + In io.Reader + Out io.Writer + Prompt string + func (s Shell) Run(ctx context.Context) error